Here's how I created a hybrid website that does prerendering, and server-side rendering. On the client side, it works as a single-page application. It uses no framework and is built purely with React and Vite.