19 ms·
There are ways where you don't have to maintain 2 code bases. For example with react, when doing SSR, you can import your components from the client and use the
by thinkxl 9y ago
There are ways where you don't have to maintain 2 code bases. For example with react, when doing SSR, you can import your components from the client and use them in the server, allowing you to keep minimal functionality (links, text, images, etc.) when the JavaScript is off.
There is one function on the server that you need to use to render any component you imported.