1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 00:58:02 +00:00

Add a missing link to the latest til.

This commit is contained in:
jbranchaud
2016-01-05 21:19:18 -06:00
parent 46a400952a
commit ddb7992c75

View File

@@ -1,11 +1,11 @@
# Enable ES7 Transforms With react-rails # Enable ES7 Transforms With react-rails
The [`react-rails`]() gem adds JSX and ES6 transforms to the asset pipeline. The [`react-rails`](https://github.com/reactjs/react-rails) gem adds JSX and
By using `.js.jsx` and `.es6.jsx` extensions with relevant files, the asset ES6 transforms to the asset pipeline. By using `.js.jsx` and `.es6.jsx`
pipeline will know to make the appropriate transformation when compiling extensions with relevant files, the asset pipeline will know to make the
application assets. ES7 transforms are not enabled by default, but can be appropriate transformation when compiling application assets. ES7 transforms
configured. Add the following to the `config/application.js` are not enabled by default, but can be configured. Add the following to the
file to allow ES7's *class properties* syntax: `config/application.js` file to allow ES7's *class properties* syntax:
```ruby ```ruby
config.react.jsx_transform_options = { config.react.jsx_transform_options = {