Downsides of Vanilla JS

Enter Frontend Frameworks

Framework Example: Svelte.js

Here’s an example of code in Svelte and Vanilla JS

Svelte: https://svelte.dev/playground/5d09e996829a4ddf959bdcd3c17b34d5?version=5.28.2

Vanilla Approach

Framework approach

The framework approach is much better when you are building a large scale project or application