Skip to content

Commit 690c618

Browse files
authored
fix: apply missing ) to DevtoolsPanel example code (#190)
apply missing ) to DevtoolsPanel example code
1 parent 1413b4f commit 690c618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/framework/react/guides/custom-plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ export function DevtoolPanel() {
121121

122122
useEffect(() => {
123123
// subscribe to the emitted event
124-
const cleanup = DevtoolsEventClient.on("counter-state", e => setState(e.payload)
124+
const cleanup = DevtoolsEventClient.on("counter-state", e => setState(e.payload))
125125
return cleanup
126126
}, [])
127127

128128
return (
129129
<div>
130130
<div>{state.count}</div>
131131
<div>{JSON.stringify(state.history)}</div>
132-
<div/>
132+
</div>
133133
)
134134
}
135135
```

0 commit comments

Comments
 (0)