Utilities for React to simplify development
Everyday components for speeding up React development with little or no extra boilerplate code.
Package | Utility |
---|---|
@react-utilities/vertical-scroll-distance-detector | checks the vertical scroll distance of an element |
@react-utilities/width-detector | checks the browser width |
There are several ways to approach building utilities for React.
React Utilities focuses on simplicity. It has 1 dependencyβReact! It is a monorepo providing an echo system to quickly develop and test React utilities to be shared without the worry of code bloat because when it comes to installing your component, you're only importing a component and a little boilerplate from compilation.
Furthermore, because tests are written for each component in React Utilities, you don't have to write tests. Basically, React Utilities aims to be the React code you could write but won't now that you can import a React Utility from this library without worry.
Many if not all React Utilities are written very well elsewhere! React Utilities are meant to add solutions to everyday React development as well as recipes for common React development patterns so that you can focus on your app.
See React Use, React Fns, The Platform, and Jared Palmer's work for a great start! ππ¨