preact-www
preact-www copied to clipboard
Fragment shorthand not compatible with jsx-factory
See: https://github.com/Microsoft/TypeScript/issues/20469
JSX fragment is not supported when using --jsxFactory ts(17016)
Documentation should be updated to clarify how to use <></>
Fragment shorthand syntax. I could not get it working correctly.
That issue is specific to TypeScript. We don't have a page dedicated to TS yet. If we do it makes sense to put it there :+1:
Would you accept a pull request with a note for Typescript users, or are you planning on having entirely separate documentation for Typescript?
A note is perfectly fine for now. It's better than what we have right now :+1: Happy to review any PRs :tada: :100:
A dedicated TS page may be something for later.
At some point a dedicated TS page was added with info on how to set the jsxFragmentFactory
, so I'll close this on out.