mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
minor spelling change on the "controlled input null value" cookbook entry
This commit is contained in:
@@ -7,7 +7,7 @@ permalink: controlled-input-null-value-tip.html
|
||||
|
||||
With a controlled input component, specifying a `value` prevents the user from changing the input unless you desire so (more info [here](forms.html)).
|
||||
|
||||
You might have ran into a problem where you specified a `value` but the input can still be changed. In this case, you might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text be edited.
|
||||
You might have ran into a problem where you specified a `value` but the input can still be changed. In this case, you might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text can be edited.
|
||||
|
||||
```js
|
||||
/** @jsx React.DOM */
|
||||
|
||||
@@ -9,7 +9,7 @@ permalink: controlled-input-null-value.html
|
||||
You specified a `value` parameter for your form input, but the input value can still be modified, contrary to [what you'd expect](forms.html).
|
||||
|
||||
### Solution
|
||||
You might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text be edited.
|
||||
You might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text can be edited.
|
||||
|
||||
```js
|
||||
/** @jsx React.DOM */
|
||||
|
||||
Reference in New Issue
Block a user