Skip to content

React library that presents some components to interact with IPFS protocol

License

Notifications You must be signed in to change notification settings

nhussein11/ipfs-react

Repository files navigation

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

About

React library that presents some components to interact with IPFS protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published