developit / developit/vhtml

How do I use this with TypeScript?

Offen
#19 7 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
814
Forks
37
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I can figure out the:

```
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h",
},
}
```

But I can't figure out how to get the typings going for `h` and things like `children`,

Specifically the error I'm getting on any JSX element is:

> JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.ts(7026)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.