Skip to content

Commit 99fbd5f

Browse files
committed
fix syntax error in coding exercise
1 parent 068132f commit 99fbd5f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

coding-exercise/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ export default function Counter() {
105105
countRef.current = countRef.current + 1;
106106
}
107107

108-
return
109-
<>
110-
<span>Count: {countRef.current}</span>
111-
<button onClick={handleIncrement}>
112-
Click me
113-
</button>
114-
</>
108+
return (
109+
<>
110+
<span>Count: {countRef.current}</span>
111+
<button onClick={handleIncrement}>
112+
Click me
113+
</button>
114+
</>
115+
)
115116
}
116117
```
117118

0 commit comments

Comments
 (0)