Skip to content

Commit a568c7c

Browse files
author
Juan Lulkin
committed
Remove space from jsx literal and add space to function definition
According to PR comments.
1 parent 45834dd commit a568c7c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎react/README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
const Listing = React.createClass({
3737
// ...
3838
render: function() {
39-
return <div>{ this.state.hello }</div>;
39+
return <div>{this.state.hello}</div>;
4040
}
4141
});
4242

4343
// good
4444
class Listing extends React.Component {
4545
// ...
4646
render() {
47-
return <div>{ this.state.hello }</div>;
47+
return <div>{this.state.hello}</div>;
4848
}
4949
}
5050
```
@@ -56,13 +56,13 @@
5656
// bad
5757
class Listing extends React.Component {
5858
render() {
59-
return <div>{ this.props.hello }</div>;
59+
return <div>{this.props.hello}</div>;
6060
}
6161
}
6262
6363
// good
64-
function Listing({ hello }){
65-
return <div>{ hello }</div>;
64+
function Listing ({ hello }) {
65+
return <div>{hello}</div>;
6666
}
6767
```
6868

0 commit comments

Comments
 (0)