This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| reactjs:typescript-integration [2015-02-17] – created dcai | reactjs:typescript-integration [2020-04-19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== TypeScript integration ===== | ||
| + | I found it's a bit hacky to create React.JS components in TypeScript, mainly because TypeScript doesn' | ||
| + | |||
| + | The workaround is using ts-jsx-loader created by James brantly: https:// | ||
| + | |||
| + | The idea is creating a fake API React.jsx(), | ||
| + | |||
| + | There also a project attampts to make typescript understands JSX: https:// | ||
| + | |||
| + | * Reference: [[https:// | ||
| + | * Helper: [[https:// | ||