Use double quotes for JSX properties (#225)

It helps to maintain consistency with React docs
This commit is contained in:
Héliton Nordt
2016-07-26 17:45:35 -03:00
committed by Dan Abramov
parent 1670fb13e7
commit 895cfaf9bb

View File

@@ -99,7 +99,7 @@ import Button from './Button'; // Import a component from another file
class DangerButton extends Component {
render() {
return <Button color='red' />;
return <Button color="red" />;
}
}
@@ -139,7 +139,7 @@ import './Button.css'; // Tell Webpack that Button.js uses these styles
class Button extends Component {
render() {
// You can use them as regular CSS styles
return <div className='Button' />;
return <div className="Button" />;
}
}
```