1.0.3 • Published 3 years ago
ipfs-react v1.0.3
React IPFS
Main Scripts
Always prepending pnpm:
dev: Bootstrap the Storybook preview with Hot Reload.build: Builds the static storybook project.build:lib: Builds the component library into the dist folder.lint:fix: Applies linting based on the rules defined in .eslintrc.js.format:prettier: Formats files using the prettier rules defined in .prettierrc.test: Runs testing using watch mode.test:cov: Runs testing displaying a coverage report.
Using this library
Install the library running pnpm i ipfs-react.
To import the styles the library needs:
/* _app.tsx */
import 'ipfs-react/dist/style.css'
// More imports and your App component ...To import library components:
/* pages/index.tsx */
import { VideoIPFS } from 'ipfs-react'
import { ImageIPFS } from 'ipfs-react'
// More imports and your Page component...