preact-www icon indicating copy to clipboard operation
preact-www copied to clipboard

Fragment shorthand not compatible with jsx-factory

Open AlexReff opened this issue 4 years ago • 3 comments

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.

AlexReff avatar Nov 13 '19 21:11 AlexReff

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:

marvinhagemeister avatar Nov 14 '19 06:11 marvinhagemeister

Would you accept a pull request with a note for Typescript users, or are you planning on having entirely separate documentation for Typescript?

AlexReff avatar Nov 14 '19 18:11 AlexReff

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.

marvinhagemeister avatar Nov 15 '19 06:11 marvinhagemeister

At some point a dedicated TS page was added with info on how to set the jsxFragmentFactory, so I'll close this on out.

rschristian avatar May 08 '24 05:05 rschristian