diff --git a/docs/forms.md b/docs/forms.md
index aed23b82..a8c10519 100644
--- a/docs/forms.md
+++ b/docs/forms.md
@@ -34,7 +34,7 @@ To update the value in response to user input, you would use the `onChange` even
class Form extends React.Component {
constructor(props) {
super(props);
- this.state = {value: ""};
+ this.state = {value: ''};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
@@ -44,7 +44,7 @@ class Form extends React.Component {
}
handleSubmit(event) {
- alert("Text field value is: '" + this.state.value + "'");
+ alert('Text field value is: ' + this.state.value);
}
render() {
@@ -99,7 +99,7 @@ If you wanted to listen to updates to the value, you could use the `onChange` ev
class Form extends React.Component {
constructor(props) {
super(props);
- this.state = {value: ""};
+ this.state = {value: ''};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
@@ -109,7 +109,7 @@ class Form extends React.Component {
}
handleSubmit(event) {
- alert("Text field value is: '" + this.state.value + "'");
+ alert('Text field value is: ' + this.state.value);
}
render() {
@@ -161,7 +161,7 @@ Like all DOM events, the `onChange` prop is supported on all native components a
> Note:
>
-> For `` and `