Commit 116090bd authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Add missing TypeScript configuration for Petit TSX

parent 36b9f378
......@@ -11,6 +11,8 @@ Thanks to using TypeScript and Parcel, we get JSX/TSX without hassle.
## Integrating
`index.tsx`:
```typescript
import { h, mount, patch } from 'petit-dom';
......@@ -29,3 +31,14 @@ async function render() {
patch(app, temp);
}
```
`tsconfig.json`:
```json
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h"
}
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment