I'm using these library versions:
ReactJS.NET: React.Aspnet 4.1.1
JavaScriptEngineSwitcher: ChakraCore 3.0.7
react and react-dom: 16.8.2
webpack: 4.29.6
node: 10.13.0
Runtime environment:
- OS: Windows 10 64bit
- .NET Framework or .NET Core Version: .Net Core 2.1/2.2
Steps to reproduce
When using @Html.React with serverOnly set to true the styled components render function always returns null, remove serverOnly or set clientOnly and it works, the only workaround I have found to achieve what I want is to use @Html.ReactRouter and everything works as expected.
JavaScriptEngineSwitcher.V8.Native.win-x64)SetUseReactandSetUseBabelis correct inReactConfig.csorStartup.csI'm using these library versions:
ReactJS.NET: React.Aspnet 4.1.1JavaScriptEngineSwitcher: ChakraCore 3.0.7reactandreact-dom: 16.8.2webpack: 4.29.6node: 10.13.0Runtime environment:
Steps to reproduce
When using @Html.React with serverOnly set to true the styled components render function always returns null, remove serverOnly or set clientOnly and it works, the only workaround I have found to achieve what I want is to use @Html.ReactRouter and everything works as expected.