O'Reilly logo

React 16 Tooling by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Action state diffs

Another way to view action data in Redux DevTools is to look at the state diff that results from dispatching the action. Instead of trying to glean the changes in state by looking at the entire state tree, this view only shows you what changed.

Let's try adding a new book to generate some actions. I'm going to add the book you're reading right now. First, I'll paste in the title of the book that generates a change event on the input element, which in turn dispatches a SET_NEW_BOOK_TITLE action. If you select the action, you should see the following:

The title value of the newBook state went from an empty string to the value ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required