Skip to content

Commit b113f83

Browse files
committed
Add missing part to the example
1 parent 3c2611e commit b113f83

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

beta/src/pages/learn/synchronizing-with-effects.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,14 @@ export default function Form() {
10211021
onChange={e => setName(e.target.value)}
10221022
/>
10231023
</label>
1024-
1024+
<label>
1025+
<input
1026+
type="checkbox"
1027+
checked={upper}
1028+
onChange={e => setUpper(e.target.checked)}
1029+
/>
1030+
Make it uppercase
1031+
</label>
10251032
<p>Hello, <b>{upper ? name.toUpperCase() : name}</b></p>
10261033
</>
10271034
)}

0 commit comments

Comments
 (0)