3 ms·
The title of the question says something else & the description says something else. Anyways I'll try to answer the title "Benefits of front-end JavaScript fra
by deadcoder0904 9y ago
The title of the question says something else & the description says something else.
Anyways I'll try to answer the title "Benefits of front-end JavaScript frameworks"
I wanted to know the same question a year ago so I tried making a site in Vanilla JS. Here is the demo [0] & here is the code [1] & my thoughts when I wrote it [2].
I tried making the application with Vanilla JavaScript without any frameworks & it sucked. I had to do routing. I had to maintain state & the code organization in a single JavaScript file was terrible.
That's why there are frameworks like React/Vue/Angular that help us make it simple. It handles the client state, routing for you & a lot of complex logic. Try making the same application I made using Vanilla JS & then try making it in any framework. It won't require more than a week but you will know why you require a Framework instead of doing it on your own.
In short, if you're not using a Framework, you're building one.
[0]: https://deadcoder0904.github.io/AMA-reader https://deadcoder0904.github.io/AMA-reader
[1]: https://github.com/deadcoder0904/AMA-reader https://github.com/deadcoder0904/AMA-reader
[2]: https://100dayz.js.org/2016/12/02/AMA-Reader https://100dayz.js.org/2016/12/02/AMA-Reader