alex-kinokon / jsx-dom

Use JSX to create DOM elements.
BSD 3-Clause "New" or "Revised" License
277 stars 30 forks source link

Fix for broken React functional component typings due to ElementType change in TypeScript 5.1+ #101

Closed volkanceylan closed 9 months ago

volkanceylan commented 9 months ago

Workaround for several issues I reported in #100. ElementType fix is adjusted from latest React definitions. I also had to do one change in Custom events property in EventHandler declaration as TypeScript complains about index string compatibility.