Skip to content

Which react version is being used by reactjs #1338

@AfshinZavvar

Description

@AfshinZavvar

Sorry for asking. We've had issues using ReactJS on MVC .NET4.8
Getting strange errors like React Dom already delcared ,Cannot read properties of null (reading 'useState')], Please expose version of React

Still couldn't come up with a solution.
Can you please help me to find the React version that ReactJS is using for .Net framweok 4.8?

Here is the config I use

         ReactSiteConfiguration.Configuration
                .SetAllowJavaScriptPrecompilation(false)
                .SetLoadReact(false)
                .SetLoadBabel(false)
                .AddScriptWithoutTransform("~/main-script.js");

            JsEngineSwitcher.Current.DefaultEngineName = V8JsEngine.EngineName;
            JsEngineSwitcher.Current.EngineFactories.AddV8();

We're using latest possible version on Nuget and on FE side we're using React and Vite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions