@react-guy/composer
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

React Guy Composer Logo

React-Guy-Composer is a library that allows you to manage state of your components using an event-driven approach. Handle form data, and change state of nested components in an easy and predictable way.


Overview

Every frontend developer is familiar with the HTML5 event model, every one of us heard of such things like event bubbling, event listeners, target element and so on. Fire an event, and it will propagate through the DOM hierarchy, from the target element all the way up to the root one (in the case of event bubbling).

On the other hand, a React application is a hierarchy of React components. So, the idea behind the library is very simple: having a hierarchy of components (the component tree), dispatch an event to the target component and propagate it throught components in the component tree. And because any of the components may have event listeners, you can easily change the state of the target component during the event propagation.

Package Sidebar

Install

npm i @react-guy/composer

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

314 kB

Total Files

51

Last publish

Collaborators

  • react-guy