@cerc-io/react-peer (0.2.38)
Published 2023-09-04 09:21:27 +00:00 by cerccicd
Installation
@cerc-io:registry=
npm install @cerc-io/react-peer@0.2.38
"@cerc-io/react-peer": "0.2.38"
About this package
react-peer
React component for using @cerc-io/peer package.
Development
To use react-peer package in react applications during development:
-
Build package
yarn && yarn build
-
Register package for yarn link
yarn link
-
Register react library for yarn link to avoid duplicate react library issues
cd node_modules/react yarn link
-
Yarn link packages in the react application where we want to use react-peer
# In react application repo directory yarn link "react" yarn link "@cerc-io/react-peer"
-
Import react-peer to use
import { PeerProvider, PeerContext } from '@cerc-io/react-peer'
Dependencies
Dependencies
ID | Version |
---|---|
@cerc-io/libp2p-util | ^0.2.38 |
@cerc-io/peer | ^0.2.50 |
@cerc-io/react-libp2p-debug | ^0.2.38 |
@mui/lab | ^5.0.0-alpha.121 |
@mui/material | ^5.11.3 |
convert | ^4.10.0 |
lodash | ^4.17.21 |
Development Dependencies
ID | Version |
---|---|
nwb | 0.25.x |
react | ^18.2.0 |
react-dom | ^18.2.0 |
Peer Dependencies
ID | Version |
---|---|
react | ^18.2.0 |
Keywords
react-component