Is really necessary to learn React or Angular for front end?
Hi, i just started diving into React and i don't understand why is used. To me it seems like it over complicates everything. Until now i can do the same things with basic Javascript and CSS. I feel that is like making everything harder. Do i really need to learn it? I already managed to make a normal website with HTML, CSS, JAVASCRIPT, PHP, JQUERY AJAX. With a catalog and filters, dashboard without using React or Angular. What is the point?
6 Replies
I felt the same way 🙂 Coming from past web experience too.
Check out Svelte/Kit its a refreshing change to the UI frameworks "of old"
Will feel much more like just writing vanilla HTML/CSS/JS, also works directly with the DOM not vdom
Personally speaking it's used majorly for big projects due to components and state management. for Small to medium projects I think normal HTML CSS JS is sufficient.
Long as you understand the underlying principles you can use that same knowledge in all of them. So learning Svelte might help you understand the concepts of a UI framework better. Then making learning others easier too.
Agreed
I was looking now how to combine PHP and React and i must make 2 different projects, run 2 different servers and make them speak between them with API calls 😂 Ill give a look to SvelteKit
You would have to do the same in SvelteKit unless you wanted to leverage node for your backend. You can however also build it pre-rendered with the PHP API json for content if you wanted to go "headless/jamstack"
There are ways you can include it into a PHP template but that is beyond me atm.