mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
Update CONTRIBUTING.md
This commit is contained in:
parent
c87e670c08
commit
3f8f7a755c
@ -31,7 +31,7 @@ This library is a collection of React hooks so a proposal for a new hook will ne
|
||||
|
||||
### Creating a new hook
|
||||
|
||||
1. Create `src/useYourHookName.ts` and `src/stories/useYourHookName.story.tsx`, run `yarn start` to start the storybook development server and start coding your hook
|
||||
1. Create `src/useYourHookName.ts` and `stories/useYourHookName.story.tsx`, run `yarn start` to start the storybook development server and start coding your hook
|
||||
1. Create `tests/useYourHookName.test.ts`, run `yarn test:watch` to start the test runner in watch mode and start writing tests for your hook
|
||||
1. Create `docs/useYourHookName.md` and create documentation for your hook
|
||||
1. Export your hook from `src/index.ts` and add your hook to `README.md`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user