Ask HN: How do you use React as a library in 2024?
1 points| blacksoil | 1 year ago
I'm asking this is because I want to go back to MVC, but I don't want to miss out on the nice libraries out there built for React. Hence I want to combine MVC + React as a library.
acemarke|1 year ago
- What do you mean by "React as a library"? Using it as a pure SPA with a bundler like Vite? Using it as a plain `<script>` tag?
- What do you mean by "go back to MVC"? What does "MVC" mean specifically in this case?
blacksoil|1 year ago
Yes.
- What do you mean by "go back to MVC"? What does "MVC" mean specifically in this case?
MVC as in Model-View-Controller.
To give more context, I'm prototyping a lot, and having to create endpoints for every single APIs is quite a chore. Also I want to avoid the overhead of having to run separate server just to host the frontend (e.g. NextJS)