mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Enclose a value of variable in back quote
This commit is contained in:
@@ -105,7 +105,7 @@ Using form components such as `<input>` in React presents a challenge that is ab
|
||||
<input type="text" name="title" value="Untitled" />
|
||||
```
|
||||
|
||||
This renders an input *initialized* with the value, `Untitled`. When the user updates the input, the node's value *property* will change. However, `node.getAttribute('value')` will still return the value used at initialization time, `Untitled`.
|
||||
This renders an input *initialized* with the value, `Untitled`. When the user updates the input, the node's `value` *property* will change. However, `node.getAttribute('value')` will still return the value used at initialization time, `Untitled`.
|
||||
|
||||
Unlike HTML, React components must represent the state of the view at any point in time and not only at initialization time. For example, in React:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user