@mlaopane/react-view-model
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

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

Package Sidebar

Install

npm i @mlaopane/react-view-model

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

25.4 kB

Total Files

4

Last publish

Collaborators

  • mlaopane