2

In the JS templates that are created there is only SPA format for applications. But what if I don't need Routes and SPA? I need regular MVC with react components like slider, dropdowns etc. You can create a pure MVC project and manually add React components, but then it is not clear how to set up a server to debug react components. The approach to templates is very strange, there are only SPA projects but no other options. How can I remove react routes from the template that is being created?

6
  • Which template did you use to create React Project? Commented Mar 16, 2021 at 12:47
  • ASP.NET Core 5.0 with React.js (without Redux support) Commented Mar 16, 2021 at 12:49
  • I tried setting up a new ASP.NET Core React.js project as instructed here. And yes, it uses react router for routing but if you want to remove it, I don't see any challenge. You can remove the routing and just return a component like return <Home/> in App.js. Or maybe, I could not understand your question. Commented Mar 17, 2021 at 15:37
  • Do you want to remove routes from frontend and do routing at backend? So, are you looking for Server Side Rendering (SSR)? Commented Mar 17, 2021 at 15:45
  • I need a standard MVC project in which I could add a React component, for example, a button created in React, when you click on it, it writes "Hello world" Commented Mar 17, 2021 at 18:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.