mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Enclose a value of variable in back quote
This commit is contained in:
1 parent
500d4c3f87
commit
f0a7b5df64
1 file changed
+1
-1
@@ -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