A collection of Reacts hooks used in Flywire
Add the dependency to your package.json:
npm i @flywire/react-hooksInstall dependencies:
npm installnpm run test- useDebounce
- useFormState
- useIdleTimer
- useOnClickOutside
- useOnScroll
- useStep
- useThrottle
- useToggle
- useValidate
To create a new release, make all the changes that you need and commit them, then execute:
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]For example:
npm version patch
npm publishor for a beta:
npm version prepatch
npm publish --tag betaThis will bump the package.json version, build a new bundle, commit, push the
changes tagging them to a new release.
Then create a PR and request the review from other project commiters. Once
accepted and merged to master, execute npm publish from master branch.
