Update README.md

Tell how to monitor only a part of the state
This commit is contained in:
rogermarkussen 2015-07-28 19:42:56 +02:00
parent 9e9d23daf3
commit 5813c4c852

View File

@ -31,6 +31,9 @@ open http://localhost:3000
Try clicking on actions in the log, or changing some code inside `examples/counter/reducers/counter`. Try clicking on actions in the log, or changing some code inside `examples/counter/reducers/counter`.
For fun, you can also open `http://localhost:3000/?debug_session=123`, click around, and then refresh. For fun, you can also open `http://localhost:3000/?debug_session=123`, click around, and then refresh.
If you only would like to monitor a part of the state, you can set a select-prop on the DevTools component.
ex. <DevTools select={state => state.todos} store={store} monitor={LogMonitor} />
Oh, and you can do the same with the TodoMVC example as well. Oh, and you can do the same with the TodoMVC example as well.
### It's Ugly! ### It's Ugly!