Logging the State Object
Now we'll write a function which logs all our store updates. This will be helpful in understanding if our contacts component is working properly.
Each time the store updates and invokes render, let’s log the state from the store.
Here’s how:
Press + to interact
const render = () => {fancyLog();return ReactDOM.render(<App />, document.getElementById("root"));};
Just call a new ...
Get hands-on with 1400+ tech skills courses.