Replies: 1 comment
-
Hi, of course you can use React with only a few pages. You can use dynamic imports to load the react app/components in specific elements only if they exist. An also, you can have multiple entry points in your Vite configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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