4 ms·
One of the biggest reasons I reach straight for React is that I then have only one UI language. Instead of templating on the server in python or c# and then do
by ldiracdelta 8y ago
One of the biggest reasons I reach straight for React is that I then have only one UI language. Instead of templating on the server in python or c# and then doing any UI updates in javascript on the client, I only have to write templating code in React and it runs on client and server.
- dwaltrip 8y agoYou switched from a C# or Python backend to node.js so that you can render React on the server, correct? Or are you doing something fancy to serve react.js rendered contents from a non-js backend? I agree that the hybrid approach of both server-side templates and SPA-controlled content looks difficult.
- ldiracdelta 8y agoPersonally, I don't use node.js as a backend. I normally use Django REST Framework (DRF). I may do server-side rendering of the client using express, still calling back into DRF for the data. The important piece for me is that I don't like the idea of generating a page in one language and then mutating the UI on the client side with another language. I just use one language for the whole UI.
- dwaltrip 8y agoThanks for sharing, that is an interesting setup.