Review
I was like you two years ago, used to jquery and didn't want to switch, but if you're willing to use js frameworks in your projects(React, Vuejs...), I advise you to switch asap, and get used to normal javascript, because in the end, it's the core language, but there are some new ways in it (especially in ES6) that will make your life easier, like you can replace the document.querySelector() with $() and document.querySelectorAll() with $$(), using this line of code:
const $ = e => document.querySelector(e), $$ = e => document.querySelectorAll(e);
then you can select a p element just by writing: $('p'), and multiple p elements like that: $$('p').
I hope my advice helped you in any way.
0 views0
Comments