@omkar-sheral/react-view-controller
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

react-view-controller

Controller for React Component

A pattern where Component should worry about only rendering the data. Controller will take care of providing the data to the Component and handling the events.

The idea is Component should be as dumb as possible.

Controller should be responsible for the logic.

This library delegates all life cycle callbacks of Component to Contoller. Controller then, in the life cycle callbacks, can fetch the data, attach an event listener, and work on data.

How to use

See examples.

Readme

Keywords

none

Package Sidebar

Install

npm i @omkar-sheral/react-view-controller

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

10.9 kB

Total Files

12

Last publish

Collaborators

  • omkar.sheral.1989