2.2.2 • Published 3 years ago

@brix-ui/contexts v2.2.2

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

@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';