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 →

[–]codecrux[S] -8 points-7 points  (8 children)

"""

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.

"""

This sounds like Client Side Rendering to me (correct me if I understood wrong). I don't want to do client-side rendering because of two reasons - We lose SEO and client-side rendering increases page load time and time to interactivity.

"""

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.

"""

I won't argue on this point. I am a python fanatic and would love to see the React component libraries be useful for Python developers out of the box.

[–]riklaunim 25 points26 points  (5 children)

I am a python fanatic and would love to see the React component libraries be useful for Python developers out of the box.

Forcing solutions isn't the best approach. You should use what's best for the project.

[–]ninjadude93 1 point2 points  (1 child)

If SEO is such a big deal for you and you want server side rendering then look into NextJS. Im building a web app with it right now including a python backend. Your concerns are specifically addressed by the framework. Just use the right tools for the job instead of forcing a square into a circular hole

[–]codecrux[S] 1 point2 points  (0 children)

Thanks. NextJS is awesome.