To develop locally, use yarn link:
- clone this repo
yarn install
yarn build
- Link the package to use in your explorer project
yarn link
- Link react, since we need to use the same react instance or react will break
cd node_modules/react
yarn link
- Link react-dom, since we need to use the same react-dom instance or react will break
cd ../../node_modules/react-dom
yarn link
- Use the linked packages in your explorer
cd ../../../YOUR_EXPLORER
yarn link @dfuse/explorer
yarn link react
yarn link react-dom