You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on quite a big ASP.NET Core MVC project with lots of controllers and razor views and want to begin implement React with Vite slowly in just some of those views/pages. I'm very new to React and Vite and have looked at the example project and I'm not sure how I would go about implementing React using the code snippets in it. Is there an example project where React is implemented too?
Also, it seems like you can't implement React in just some pages and still use the normal razor views for others since Vite only compiles one main.ts file for the whole project. How could you implement a few different React components selectively in just some pages?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on quite a big ASP.NET Core MVC project with lots of controllers and razor views and want to begin implement React with Vite slowly in just some of those views/pages. I'm very new to React and Vite and have looked at the example project and I'm not sure how I would go about implementing React using the code snippets in it. Is there an example project where React is implemented too?
Also, it seems like you can't implement React in just some pages and still use the normal razor views for others since Vite only compiles one main.ts file for the whole project. How could you implement a few different React components selectively in just some pages?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions