Thanks for filing a bug! To save time, if you're having trouble using the library, please check off the items you have tried. If you are just asking a question, skip right to the bottom.
Please verify these steps before filing an issue, and check them off as you go
I'm using these library versions:
ReactJS.NET:
JavaScriptEngineSwitcher:
react and react-dom: (N/A if using bundled react, or version number)
webpack: (N/A if using bundled react)
node: (N/A if using bundled react)
Runtime environment:
- OS: (Mac, Windows, Linux flavor. Include 32-bit/64-bit and version)
- .NET Framework or .NET Core Version:
Steps to reproduce
In Startup.cs:
app.UseReact(config => {
config
.SetReuseJavaScriptEngins(true)
.SetLoadBabel(false)
.SetLoadReact(false)
.SetReactAppBuildPath("~/js/webpacked/react");
});
... run npm install react@18.2.0 --save
... run npm install react-dom@18.2.0 --save
I've updated my version of react and react-dom to 18.2.0 -- It seems that this breaks React.NET with the following error:
ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
The current version of React.NET is pretty old - is this being updated to support React 18?
Thanks for filing a bug! To save time, if you're having trouble using the library, please check off the items you have tried. If you are just asking a question, skip right to the bottom.
Please verify these steps before filing an issue, and check them off as you go
JavaScriptEngineSwitcher.V8.Native.win-x64)SetUseReactandSetUseBabelis correct inReactConfig.csorStartup.csI'm using these library versions:
ReactJS.NET:JavaScriptEngineSwitcher:reactandreact-dom: (N/A if using bundled react, or version number)webpack: (N/A if using bundled react)node: (N/A if using bundled react)Runtime environment:
Steps to reproduce
In Startup.cs:
app.UseReact(config => {
config
.SetReuseJavaScriptEngins(true)
.SetLoadBabel(false)
.SetLoadReact(false)
.SetReactAppBuildPath("~/js/webpacked/react");
});
... run npm install react@18.2.0 --save
... run npm install react-dom@18.2.0 --save
I've updated my version of react and react-dom to 18.2.0 -- It seems that this breaks React.NET with the following error:
ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
The current version of React.NET is pretty old - is this being updated to support React 18?