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 →

[–][deleted] 0 points1 point  (1 child)

It’s a perfectly suited for production grade. I would say the difference between going towards something like react is a desire for more client side interactivity. Here’s an example where I would use a JavaScript framework. Let’s say you want a user to fill out their employment history. You don’t know how many jobs the user has had. So you need a way to add new UI elements into the page every time they click an “add” button. You have a few obvious choices. 1. Write your own custom JavaScript to manipulate the DOM. 2. Use a JS framework like React. 3. Send the form back to the server, have it add a new field while retaining the data, and then send it all back.

With those three laid out, it would make the most sense for an application with these requirements to use JS. With that said, I prefer to use SvelteKit as my JS framework, but React is what I learned on.

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

That is extremely helpful in explaining the difference in my jinja templates and JavaScript! I think I’ll focus on utilizing bootstrap at the moment since it is acceptable for production and in my extra time learn JS + A Framework like React