Skip to content

Commit

Permalink
document using TSX files with React
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed May 4, 2024
1 parent d007c95 commit c28963a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/modules/react.md
Expand Up @@ -55,6 +55,20 @@ export default {

The rendered component will be accessible at http://localhost:6161/react.

## TSX

To use TSX instead of JSX files, change this handler's extension to `.tsx`.

```js caption=primate.config.js
import { react } from "@primate/frontend";

export default {
modules: [
react({ extension: ".tsx" }),
],
};
```

## Configuration options

### extension
Expand Down

0 comments on commit c28963a

Please sign in to comment.