Add missing part to the example

This commit is contained in:
Dan Abramov
2022-06-14 02:26:35 +01:00
parent 3c2611e805
commit b113f83071

View File

@@ -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>
</>
)}