{"repo":"RisingStack/react-easy-state","free":true,"listed":false,"github":"https://github.com/RisingStack/react-easy-state","clone":"git clone https://github.com/RisingStack/react-easy-state.git","description":"Simple React state management. Made with ❤️ and ES6 Proxies.","language":"JavaScript","stars":2541,"topics":["react","javascript","reactive-programming","state-management","es6-proxies","state","reactjs","react-state"],"license":"MIT","category":"ui-components","readme_excerpt":"React Easy State - by RisingStack NEWS: v6.3.0 fixed a nasty bug that could render zombie children. Please update to this version at least to save yourself some headaches. Thanks! Table of Contents Introduction :wave: Installation :cd: Everyday Usage :sunglasses: + Creating global stores + Creating reactive views + Creating local stores Advanced Usage :nerd face: + Adding side effects API Summary :book: + store(obj) + view(Comp) + batch(fn) + autoEffect(fn) + clearEffect(fn) Examples with live demos :tv: Articles :loudspeaker: Performance :rocket: Platform support :computer: Alternative builds :wrench: Contributors :sparkles: Introduction :wave: React Easy State is a practical state management library with two functions and two accompanying rules. 1. Always wrap your components with view() . 2. Always wrap your state store objects with store() . This is enough for it to automatically update your views when needed. It doesn't matter how you structure or mutate your state stores, any syntactically valid code works. Check this TodoMVC codesandbox or raw code for a more exciting example with nested data, arrays and getter properties. Installation :cd: npm install @risingstack/react-easy-state Setting up a quick project Easy State supports Create React App without additional configuration. Just run the following commands to get started. You need npm 5.2+ to use npx. Everyday Usage :sunglasses: Creating global stores store creates a state store from the passed object and returns it","default_branch":null,"files":null,"tree":[],"storefront":"/r/RisingStack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RisingStack/react-easy-state/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}