Skip to content

Commit 895cfaf

Browse files
hnordtgaearon
authored andcommitted
Use double quotes for JSX properties (facebook#225)
It helps to maintain consistency with React docs
1 parent 1670fb1 commit 895cfaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import Button from './Button'; // Import a component from another file
9999

100100
class DangerButton extends Component {
101101
render() {
102-
return <Button color='red' />;
102+
return <Button color="red" />;
103103
}
104104
}
105105

@@ -139,7 +139,7 @@ import './Button.css'; // Tell Webpack that Button.js uses these styles
139139
class Button extends Component {
140140
render() {
141141
// You can use them as regular CSS styles
142-
return <div className='Button' />;
142+
return <div className="Button" />;
143143
}
144144
}
145145
```

0 commit comments

Comments
 (0)