ES6 Generators for State Management in React
We can use ES6 Generator functions to manage state with very little React code. 
Tags: es6, javascript, react, hooks