When should I move onto frameworks
hey!!
so, i been thinking, I'm doing js for a month or so and i think i right now am familiar with most of the fundamentals of js and how they work
now I was wondering at what point should I move onto framework?
or what things should I complete learning about js before moving onto framework.. cause I'm currently out of thoughts over what things i should proceed to learn in js now
20 Replies
For me the bare minimum you should be familiar and comfortable with before moving to a framework, beyond basic syntax:
* Scope, mostly as it relates to arrow functions
*
fetch
* document.querySelector
and .querySelectorAll
* functional array methods like .map
, .filter
, .forEach
, and to a lesser degree .reduce
* Applying said array methods to the result of .querySelectorAll
* Event handlers
I'm probably forgetting some, but it's a decent start
also, don't be afraid to go back to vanilla JS if you notice there's a gap in your knowledgeshit I'm getting close to the frameworks 😨
you don't have to, look at Beck, he's perfectly happy sticking with vanilla ;D
hmm.. i do know the concept of all of em expect the
fetch()
I'll get to know about that
those here that r related to array, ik about then and what they do or how they work but never used them so I'll try to get done with that as well
i think it'll be better if i get a bit more understanding about query
what do you think?
and by event handlers u mean the eventListeners ryt?yeah, eventListeners, sorry
no prob xD
hm, especially if you want to use React and JSX (not that I'd necessarily recommend it), you'll need to use
.map
a lot. Some full stack frameworks might abstract fetch away from you, but it's still good to use it and understand itby the name of it.. I'm assuming
.fetch()
works like user input or something?
and one more question, say I want to complete my development on fronted, what framework would be the best start withfetch
performs HTTP requests to servers, you mostly use it to access APIs, either public ones or your own backend API
"best" is hard to quantify really... If you're doing it to eventually get a job, look around your local area and pick the most popular framework in local job listings. If you just want to have fun for now, and still learn the concepts of using a framework, take a look at svelte and sveltekit. Svelte is the main framework, Sveltekit is the fullstack version where you have a front and backend. The developer experience is probably one of the best out there right now.
The industry default is still unfortunately React, but that seems to be changing a bit. Vue is also excellent, and pretty commonly used.
Basically, read the blurbs, read a recent comparison article or two, and pick one you think you'll like the most. A lot of the concepts you learn in one, translate very well to the othershmm
k gotcha
yaaa got it
well m learning for fun rn
so i guess it doesn't very much matter whichever i choose
but i will checkout all the things u said..
and really really thank you for helping out..
much love ❤️
always glad to help 🙂
@jochemm sorry for the ping but, should I also learn about promises and async await?
To properly answer your question, you’ll need to know about promises, yes.
fetch()
that was mentioned above uses promises. So to know fetch()
is to know promises
Async/await is just syntactic sugar over promises. So know promises and async/await isn’t too hard to learnI knew I was going to forget something important. You definitely should. Also the site Beck linked is an excellent resource
k tnx
aah okee
tnx ❤️
I would also add destructuring, spread and rest operator, template literals and ternary operator
yet more good ones
@Sp1t3ful