Skip to content

Commit 57ed71e

Browse files
committed
close code tag
1 parent 464ff31 commit 57ed71e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/content/reference/api/usereactivevalue.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class Player: MonoBehaviour {
3535
And then accessed in React via the hook:
3636
```js
3737
// JS
38-
export default function ScoreTracker() {
38+
export function ScoreTracker() {
3939
const {Player} = useGlobals();
4040
// will trigger a re-render when Score changes
4141
const score = useReactiveValue(Player.Score);
@@ -106,5 +106,4 @@ export function DrawItems() {
106106

107107
// return drawn items
108108
}
109-
110-
109+
```

0 commit comments

Comments
 (0)