The following line logs our initial state in the console: console.log(store.getState()) Our learning application doesn't have a UI - we are just checking changes to state with console.log(), so make sure to open the console when you run the project in the browser. Note that getState() is a method - we need to call it on our store.
0 Comments
Leave a Reply. |