But he/she should be wise enough to understand which libraries can help them save time.
Example: Lodash: Once they understand how array, objects, string works, its not a bad idea to use something like lodash which helps do many things easily.
And yes, your point is valid, one should not jump directly on the library without understanding the basics!
While I appreciate that having no library is the ultimate option (and the most fun in the end), it is often not the most time effective or efficient option. It is also does not answer the question that has been asked. OP might have been wanting some better ideas of libraries they want to replace in their next large project.
If it is a React project, then I would have to say Zustand. It makes creating state so much easier, and matches how hooks have become the new standard. I find the Context-Provider pattern in react confusing some times, and this hides it all from me.
Although I've used many libraries and frameworks, the one I have to say Angular because it packs almost everything you'll ever need in a single framework while it can be integrated (ish) with anything written in JavaScript.
Experienced and results-driven professional with a proven track record as the Graphic Department Head, SEO Department Head, and Web Development Head at Analy Assist. Let's Connect ⭐❤️
Why to use library ?? According to me we should know how to code without any library , coz we can't be dependent on libraries.
I agree libraries are also best option to code but we can't be so dependent
Experienced and results-driven professional with a proven track record as the Graphic Department Head, SEO Department Head, and Web Development Head at Analy Assist. Let's Connect ⭐❤️
Experienced and results-driven professional with a proven track record as the Graphic Department Head, SEO Department Head, and Web Development Head at Analy Assist. Let's Connect ⭐❤️
I know javascript (typescript too) has evolved enough to eliminate use of such library but I'm using it for so long that now its my muscle memory to write _.find, _.filter, _.findIndex etc instead of using default array methods.
Gonna be the odd one out between the more-or-less-obvious "nothing should be crucial!" and the framework answers, and go with... emotion. CSS-in-JS is so goddamn easy with it, I genuinely wouldn't want to miss it, even on non-framework work. The other big one for me is pug/jade because I love the simplicity of abstracting HTML (in a very similar way to how I used to do it myself), but that's more nice-to-have than the universal utility that emotion provides for me.
Edit: To amend my pug answer: Nowadays, pug is awesome for HTML emails, because it just lets you freely generate the HTML regardless of the opinionated nature of other templating engines, and still lets you do the basic things you need. Email templates are awful, but abstracting them into basic inheritance and mixins? Godsend!
Solid.js. Even though react work pays the bills, the knowledge that one day we can make the transition to this wonderful little library keeps me motivated.
Top comments (36)
no library
because the front-end developer should learn how to do thing without any library first then he can use the libraries
Agreed!
But he/she should be wise enough to understand which libraries can help them save time.
And yes, your point is valid, one should not jump directly on the library without understanding the basics!
100%
Agreed🙌
I love when people answer this kind of stuff. You have a point but that's not really the question is it?..
Agreed
Totally agreed!
While I appreciate that having no library is the ultimate option (and the most fun in the end), it is often not the most time effective or efficient option. It is also does not answer the question that has been asked. OP might have been wanting some better ideas of libraries they want to replace in their next large project.
If it is a React project, then I would have to say Zustand. It makes creating state so much easier, and matches how hooks have become the new standard. I find the Context-Provider pattern in react confusing some times, and this hides it all from me.
Although I've used many libraries and frameworks, the one I have to say Angular because it packs almost everything you'll ever need in a single framework while it can be integrated (ish) with anything written in JavaScript.
There should be no such thing.
Every dependency needs to earn its keep and if it isn't pulling its weight then it needs to go.
Given the wide range of application holotypes that exist on the web there really isn't a dependency that is a good fit with all of them.
Patterns for Building JavaScript Websites in 2022
Ryan Carniato for This is Learning ・ Jun 8 ・ 9 min read
Wise words🙌
Why to use library ?? According to me we should know how to code without any library , coz we can't be dependent on libraries.
I agree libraries are also best option to code but we can't be so dependent
So you never used react for your front-end project?
Vue and Angular are frameworks, not libraries.
That was my bad, sorry!
i am using react, but i can live without using it
Why do you use react if you don't like depending on libraries??
console.log(using_a_library == depending_on_it); // false
😂💙✨
Definitely Lodash
I know javascript (typescript too) has evolved enough to eliminate use of such library but I'm using it for so long that now its my muscle memory to write
_.find, _.filter, _.findIndex
etc instead of using default array methods.Gonna be the odd one out between the more-or-less-obvious "nothing should be crucial!" and the framework answers, and go with... emotion. CSS-in-JS is so goddamn easy with it, I genuinely wouldn't want to miss it, even on non-framework work. The other big one for me is pug/jade because I love the simplicity of abstracting HTML (in a very similar way to how I used to do it myself), but that's more nice-to-have than the universal utility that emotion provides for me.
Edit: To amend my pug answer: Nowadays, pug is awesome for HTML emails, because it just lets you freely generate the HTML regardless of the opinionated nature of other templating engines, and still lets you do the basic things you need. Email templates are awful, but abstracting them into basic inheritance and mixins? Godsend!
vanilla-js.com/
The fastest JS library there is.
I depends on what project I'm working but at the time of writing this I am particularly attached to VueJS.
idk about library but I cannot live without typescript
React
Solid.js. Even though react work pays the bills, the knowledge that one day we can make the transition to this wonderful little library keeps me motivated.
Svelte. I love using it. I can code without it, but it is much easier to use it.
Nextjs and TailwindCSS
none
Some comments have been hidden by the post's author - find out more