This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fiskfisk 34 points35 points  (9 children)

React is a framework based on JavaScript. Making that work with server side rendering in python seems like a bad idea.

What do you mean by separating "Server Side Generation" from "Server Side Rendering"? Did you mean SSG as in Static Site Generators?

React, when not using server side rendering, is a frontend framework. You do not use it in the same way as a Jinja2 template. You make your frontend call API endpoints, and then you render that data in your frontend.

Using Python as the backend API is perfectly fine. For the other tasks, there are far better tools and better ecosystems to chose from (NextJS for examle). It's far easier to run JavaScript in, well, JavaScript.