|
|
|
|
|
by __float
1461 days ago
|
|
I haven't used this particular framework, but having type safety in React through writing TypeScript, generating bindings to the backend so those are typed as well. There's also a _ton_ of preexisting React components you can generally drop in and use, which is less true these days with something like a Django template. You also have the option of doing SSR and then doing more dynamic stuff on the client side, as a sort of optimization (and plain better user experience than making _more_ server requests to get the initial page state loaded). |
|
Type safety is incredibly important if you're lots of logic in a language, which is why TS is great for SPAs. Does the type safety of TS get you anything if you're just doing SSR with not a whole lot of logic in TS? All of your application logic will be on the Python side of things.
>You also have the option of doing SSR and then doing more dynamic stuff on the client side
Isn't this just the old-school way of doing things before SPAs came around? i.e you render the page on the server and then add dynamics features using JS. I think the new way of doing this is with htmx, hotwire, etc.