Add React 18 as a peer dependency. #3452
Answered
by
TkDodo
mielecmichal
asked this question in
General
-
Could you add a newly released React 18.0 as a peer dependency so that we can avoid npm install warning?
|
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Mar 30, 2022
Replies: 1 comment 2 replies
-
we could, but the current major version is not compatible with concurrent features of react18, so I'd rather not recommend using v3 with it. If the warning (error?) can be worked around in user land, that would be preferable for v3. v4 will switch to |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mielecmichal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we could, but the current major version is not compatible with concurrent features of react18, so I'd rather not recommend using v3 with it. If the warning (error?) can be worked around in user land, that would be preferable for v3. v4 will switch to
useSyncExternalStore
, which makes it compatible. We have a PR ready and I'll try to release a beta of v4 soon.