Browse Source

Add missing part to the example

main
Dan Abramov 3 years ago
parent
commit
b113f83071
  1. 9
      beta/src/pages/learn/synchronizing-with-effects.md

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

@ -1021,7 +1021,14 @@ export default function Form() {
onChange={e => setName(e.target.value)}
/>
</label>
<label>
<input
type="checkbox"
checked={upper}
onChange={e => setUpper(e.target.checked)}
/>
Make it uppercase
</label>
<p>Hello, <b>{upper ? name.toUpperCase() : name}</b></p>
</>
)}

Loading…
Cancel
Save