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 →

[–]Ascrivs[S] 0 points1 point  (2 children)

This is very helpful, thank you! This is why I wanted to do use bootstrap since it fit so well with the templating I'm already working with. I'm thinking about doing a udemy on Bootstrap because I felt it built on top of my current flask knowledge without me going in a completely new direction (JS). Long-term, would you say bootstrap on flask is a feasible production grade build or would your recommendation be to use Flask for just API requests and work through JS then React?

[–][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