@leap-network/hooks
v2.1.7
Published
Useful hooks for PoolTogether applications
Downloads
1
Readme
PoolTogether hooks
A collection of various useful hooks used across the PoolTogether applications.
NOTE
Make sure you keep peerDependencies
and devDependencies
versions in sync!
How to use
yarn add @leap-network/utilities
import * as Hooks from '@leap-network/hooks'
ORimport { hookYouWantToUse } from '@leap-network/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 @leap-network/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 @leap-network/hooks
.
TODO
- jest tests