Skip to content

Commit 5871e7b

Browse files
committed
Update the README
1 parent cebd319 commit 5871e7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ React-Rails is a flexible tool to use [React](http://facebook.github.io/react/)
1111
* Automatically renders React server-side and client-side
1212
* Supports Webpacker 3.x, 2.x, 1.1+
1313
* Supports Sprockets 4.x, 3.x, 2.x
14-
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [Coffeescript](http://coffeescript.org/)
14+
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [TypeScript](https://www.typescriptlang.org/), [CoffeeScript](http://coffeescript.org/)
1515

1616
Example app code available here: https://github.com/BookOfGreg/react-rails-example-app
1717

@@ -475,14 +475,14 @@ var Post = createReactClass({
475475

476476
render: function() {
477477
return (
478-
<div>
479-
<div>Title: {this.props.title}</div>
480-
<div>Published: {this.props.published}</div>
481-
<div>Published By: {this.props.publishedBy}</div>
482-
</div>
478+
<React.Fragment>
479+
Title: {this.props.title}
480+
Published: {this.props.published}
481+
Published By: {this.props.publishedBy}
482+
</React.Fragment>
483483
);
484484
}
485-
};
485+
});
486486
```
487487

488488
The generator also accepts options:

0 commit comments

Comments
 (0)