mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Use double quotes for JSX properties (#225)
It helps to maintain consistency with React docs
This commit is contained in:
committed by
Dan Abramov
parent
1670fb13e7
commit
895cfaf9bb
@@ -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" />;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user