npm.io
12.4.4 • Published 3 months ago

@terrestris/react-util

Licence
BSD-2-Clause
Version
12.4.4
Deps
5
Size
397 kB
Vulns
0
Weekly
0
Stars
4

react-util

A set of utilities enhancing the development of react applications.

Installation

npm i @terrestris/react-util

Usage

import { useObjectState } from '@terrestris/react-util';
// or
import { useObjectState } from '@terrestris/react-util/dist/hooks/useObjectState/useObjectState';

Development

npm run watch:buildto can be used to inject an updated version of react-util into another project, e.g. react-geo. The script will also watch for further changes.

npm run watch:buildto ../react-geo/node_modules/@terrestris/react-geo/