Skip to content

Add React 18 as a peer dependency. #3452

Answered by TkDodo
mielecmichal asked this question in General
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Dav3whit3
Comment options

@TkDodo
Comment options

Answer selected by mielecmichal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants