A collection of various useful hooks used across the PoolTogether applications.
Make sure you keep peerDependencies
and devDependencies
versions in sync!
yarn add @dtribe/utilities
-
import * as Hooks from '@dtribe/hooks'
ORimport { hookYouWantToUse } from '@dtribe/hooks'
- Ensure you call any required init functions early
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/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/hooks
.
- jest tests