npm.io
2.2.2 • Published 5 years ago

@brix-ui/contexts

Licence
MIT
Version
2.2.2
Deps
6
Size
12 kB
Vulns
0
Weekly
0
Stars
57

@brix-ui/contexts

Package of some useful helper React contexts.


Installation

npm i @brix-ui/contexts # react react-dom
yarn add @brix-ui/contexts # react react-dom

Make sure to have react and react-dom installed in your package as they are included in our peer dependencies.

Usage

Each context function in this package is exported by default along with its own hook:

import Modal, { useModal } from '@brix-ui/contexts/modal';

Keywords