This repository contains a collection of React libraries that we have built over the years. Our focus is on the following:
- Promote and adopt modern patterns in React such as Hooks
- Limit exposure to third party libraries
- Reduce bundle size by leveraging modern bundling techniques
- TypeScript support
- @emdgroup/react-storage - React hooks for convenient access to localStorage and sessionStorage APIs
- @emdgroup/react-query - React hooks for the fetch API with support for client-side caching
- @emdgroup/react-auth - React hooks implementing the Authorization Code Grant Flow with PKCE.
Contributions to the package are always welcome and can be submitted via a pull request. Please note, that you have to agree to the Contributor License Agreement to contribute. A bot will require your agreement to the CLA before your pull request can be merged.
git clone https://github.com/emdgroup/react-lib.git
cd react-lib
npm install
Before pushing any code, please run the documentation generator:
npm -w @emdgroup/react-query run docs
This will update the README.md
file with the latest documentation generated from the source code. Do not edit README.md
directly.
To publish a new version, change into the package directory and run:
# `minor` for new features, `patch` for bug fixes
npm version minor
npm publish --access public