luisbelloch / react-hooks

Collection of React Hooks used at Flywire

Home Page:https://peertransfer.github.io/react-hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-hooks · Version Size

react-hooks

A collection of Reacts hooks used in Flywire

Install

Add the dependency to your package.json:

npm i @flywire/react-hooks

Development

Install dependencies and peer dependencies:

npm install
npm install react react-dom lodash.isequal validate.js@0.11.1 xregexp --no-save

Run tests

npm run test

Hooks

Releases

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 publish

or for a beta:

npm version prepatch
npm publish --tag beta

This 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.

About

Collection of React Hooks used at Flywire

https://peertransfer.github.io/react-hooks


Languages

Language:JavaScript 100.0%