@mlaopane/react-view-model
v0.4.0
Published
A library to abstract the creation of a React context provider and its matching React hook
Downloads
1
Maintainers
Readme
React View Model
Purpose
Abstract the creation of a Context.Provider
and its useContext
hook.
It helps centralizing state logic which is shared across children.
Installation
With PNPM 👇
pnpm i @mlaopane/react-view-model
Or with NPM 👇
npm i @mlaopane/react-view-model
Usage
You can find an interactive example here : https://codesandbox.io/s/react-view-model-bundle-z6zv34