Skip to content

Commit 5180d68

Browse files
authored
Merge pull request #368 from codomposer/fix/coding_exercise
fix syntax error in coding exercise #3
2 parents 061b9ae + b6448a9 commit 5180d68

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)