JavaScript frameworks
These days, real-time interactivity is a fundamental part of web applications. While simple interactions can be added without a framework (developing without a framework is often called Vanilla JS), as your web application grows, it can be much easier to manage with the use of a framework. Without a framework, you would need to do all these things yourself:
- Manually define the database schema
- Convert data from HTTP requests into native objects
- Write form validation
- Write SQL queries to save data
- Construct HTML to show a response
Compare this to what Django provides. Its Object Relational Mapping (ORM), automatic form parsing and validation, and templating drastically reduce the amount of code you need to write. JavaScript frameworks bring similar time-saving enhancements to JavaScript development. Without them, you would have to manually update the HTML elements in the browser as your data changes. Let’s take a simple example...