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.

We'll cover the following

Each time the store updates and invokes render, let’s log the state from the store.

Here’s how:

Get hands-on with 1200+ tech skills courses.