Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -172,7 +172,10 @@ $ bundle exec rails webpacker:install:typescript
$ yarn add @types/react @types/react-dom
```

Doing this will allow React-Rails to support the .tsx extension.
Doing this will allow React-Rails to support the .tsx extension. Additionally, it is recommended to add `ts` and `tsx` to the `server_renderer_extensions` in your application configuration:
```
config.react.server_renderer_extensions = ["jsx", "js", "tsx", "ts"]
```

### Test component