Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inferno-compat missing support for createRoot #1624

Open
necolas opened this issue Feb 11, 2023 · 1 comment
Open

inferno-compat missing support for createRoot #1624

necolas opened this issue Feb 11, 2023 · 1 comment

Comments

@necolas
Copy link

necolas commented Feb 11, 2023

Observed Behaviour

inferno-compat does not support the following:

import { createRoot } from 'react-dom/client';

Error:

Module not found: Error: Can't resolve 'react-dom/client'

Expected Current Behaviour

Inferno should not error. For example, this is supported by preact/compat, which has a client.js file with a createRoot export.

Inferno Metadata

inferno 8.0.6
inferno-compat 8.0.6

@necolas
Copy link
Author

necolas commented Feb 11, 2023

Although I see there is also no support for other contemporary React features like hooks. It might be best not to claim "it provides the same exports as react and react-dom" anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants