We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2084b92 + 3c60f9b commit 487b111Copy full SHA for 487b111
README.md
@@ -127,6 +127,15 @@ Component File Name | `react_component` call
127
`app/javascript/components/SampleComponent.js` | `react_component("SampleComponent")`
128
`app/javascript/components/SampleComponent.js.jsx` | Has to be renamed to SampleComponent.jsx, then use `react_component("SampleComponent")`
129
130
+### Typescript support
131
+
132
+If you want to use React-Rails with Typescript, simply run the installer and add @types:
133
+```
134
+$ bundle exec rails webpacker:install:typescript
135
+$ yarn add @types/react @types/react-dom
136
137
138
+Doing this will allow React-Rails to support the .tsx extension.
139
140
## Use with Asset Pipeline
141
0 commit comments