Skip to content

Commit 5813c4c

Browse files
Update README.md
Tell how to monitor only a part of the state
1 parent 9e9d23d commit 5813c4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ open http://localhost:3000
3131
Try clicking on actions in the log, or changing some code inside `examples/counter/reducers/counter`.
3232
For fun, you can also open `http://localhost:3000/?debug_session=123`, click around, and then refresh.
3333

34+
If you only would like to monitor a part of the state, you can set a select-prop on the DevTools component.
35+
ex. <DevTools select={state => state.todos} store={store} monitor={LogMonitor} />
36+
3437
Oh, and you can do the same with the TodoMVC example as well.
3538

3639
### It's Ugly!

0 commit comments

Comments
 (0)