fix: update JSX type for old React support
Motivation
better version of https://github.com/callstack/linaria/pull/1420 which modified external namespace globally
we see error like Property 'children' is missing in type '...' but required in type 'Props'. (ts 2741) everywhere in a project using React 17, although it's working fine with projects using React 18 and React 19
Summary
Test plan
🦋 Changeset detected
Latest commit: ea223e84d29bf8c214ce25fad38997611bf01efb
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 9 packages
| Name | Type |
|---|---|
| @linaria/react | Patch |
| @linaria/atomic | Patch |
| linaria | Patch |
| @linaria/testkit | Patch |
| linaria-website | Patch |
| esbuild-example | Patch |
| rollup-example | Patch |
| vite-example | Patch |
| webpack5-example | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@Anber Hi can you check, this is a blocker for us, otherwise we will need to lock to older version 🙏
@thymikee sorry for bothering, but this is critical for us, can't find an easy solution from our side 🙏
Hey, I'm not maintaining this library, hope that @Anber can get to it when he's available :)