@dtribe/bnc-onboard-hooks
v1.1.1
Published
Hooks for adding Onboard.js to dTribe.gg dapps
Downloads
2
Readme
PoolTogether bnc-onboard-hooks
Hooks for adding Onboard.js to PoolTogether dapps.
NOTE
Make sure you keep peerDependencies
and devDependencies
versions in sync!
How to use
yarn add @dtribe/utilities
import { hookYouWantToUse } from '@dtribe/bnc-onboard-hooks'
- Ensure you call any required init functions early
Local development
Local development works best with yalc
yarn global add yalc
In pooltogether-hooks:
yarn start
In the app you're importing pooltogether-hooks:
yalc link @dtribe/bnc-onboard-hooks
When you save changes inside the hooks src
folder, the package will rebuild and be pushed to all other projects that have run yalc link @dtribe/bnc-onboard-hooks
.
TODO:
- jest tests