mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Add missing part to the example
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user