mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-06-29 09:23:27 +03:00
Update README.md
This commit is contained in:
parent
cfdf756e12
commit
5bec3d8d13
|
@ -247,9 +247,9 @@ export default class Root extends Component {
|
||||||
|
|
||||||
#### ...Or Open Them in a New Window
|
#### ...Or Open Them in a New Window
|
||||||
|
|
||||||
When you use [`DockMonitor`](https://github.com/gaearon/redux-devtools-dock-monitor), you usually want to render `<DevTools>` at the root of your app. It will appear in a docked container above it. However, you can also render it anywhere else in your React component tree. In this case, you’d create a development and a production version of some other component that would either include or exclude `<DevTools>`.
|
When you use [`DockMonitor`](https://github.com/gaearon/redux-devtools-dock-monitor), you usually want to render `<DevTools>` at the root of your app. It will appear in a docked container above it. However, you can also render it anywhere else in your React component tree. To do this, you can remove `DockMonitor` and instead render `<DevTools>` inside some component of your app. Don’t forget to create two versions of this component to exclude `DevTools` in production!
|
||||||
|
|
||||||
For example (you don’t have to do that!), you may prefer to display the DevTools in a separate window instead of rendering it inside the page. In this case, you can remove `DockMonitor` from `DevTools.js` and just use the `LogMonitor`, and have some code like this:
|
However you don’t even have to render `<DevTools>` in the same window. For example, you may prefer to display it in a popup. In this case, you can remove `DockMonitor` from `DevTools.js` and just use the `LogMonitor`, and have some code like this:
|
||||||
|
|
||||||
##### `index.js`
|
##### `index.js`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user