We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baeb31b + 690c618 commit 184ecaeCopy full SHA for 184ecae
1 file changed
docs/framework/react/guides/custom-plugins.md
@@ -121,15 +121,15 @@ export function DevtoolPanel() {
121
122
useEffect(() => {
123
// subscribe to the emitted event
124
- const cleanup = DevtoolsEventClient.on("counter-state", e => setState(e.payload)
+ const cleanup = DevtoolsEventClient.on("counter-state", e => setState(e.payload))
125
return cleanup
126
}, [])
127
128
return (
129
<div>
130
<div>{state.count}</div>
131
<div>{JSON.stringify(state.history)}</div>
132
- <div/>
+ </div>
133
)
134
}
135
```
0 commit comments