Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 928 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 928 Bytes

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...

License

MIT