0.0.24 • Published 6 years ago
@siteone/frontend-hooks v0.0.24
SiteOne Frontend Hooks
What is inside
Install
$ yarn add @siteone/frontend-hooks
Testing
$ yarn test
- https://github.com/testing-library/react-hooks-testing-library/
- https://testing-library.com/docs/preact-testing-library/api
Find more here
- https://usehooks.com
- https://reactjs.org/docs/hooks-custom.html#extracting-a-custom-hook
- https://blog.bitsrc.io/simple-code-reuse-with-react-hooks-432f390696bf
Publish
First, You need to have the rollup
$ npm install --global rollup
Then
- increment version in package.json
- push to gitlab
- run deploy:
$ yarn build
$ npm publish --access public
Contribution rules
Each hook must contain
then add to src/main.js
import [hook] from './[hook]/[hook].js
export {
...,
[hook]
}
Name conventions
The name of the hook must always start with "use" so that it can be seen at first glance that it is subject to Hook's rules.
0.0.24
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.18
6 years ago
0.0.19
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.14
6 years ago
0.0.15
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.10
6 years ago
0.0.11
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago