Open necolas opened 1 year ago
Observed Behaviour
inferno-compat does not support the following:
inferno-compat
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.
preact/compat
client.js
createRoot
Inferno Metadata
inferno 8.0.6 inferno-compat 8.0.6
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
Observed Behaviour
inferno-compat
does not support the following:Error:
Expected Current Behaviour
Inferno should not error. For example, this is supported by
preact/compat
, which has aclient.js
file with acreateRoot
export.Inferno Metadata
inferno 8.0.6 inferno-compat 8.0.6