These are things you should consider when you are starting with JS frameworks.
The urge to quickly develop something when you are starting new should be controlled. The smallest things such as Button , Input Field even a Heading tag, make it as component.
Why though ?
- Whenever there is a button you will always use this component and this will help maintain the button through out the pages consistent.
- A single change in this button component will always update everywhere its used.
The ultimate aim of the components is to break down web pages in to very small pieces of code to improve readability and make it more consistent
In the start you may hesitate to create simple components such as Heading , Labels. But trust me when the website grows and when you had to change one small thing, This comes so much easy.
Instead of loading everything at the start break your pages in to small modules and only load them when the route is activated. Its not that tough in angular as you think it is.
Learn more on Lazy Loading
Angular uses typescript by default but not react/next. But you can easily add types on those with the create-react-app with typescript.
For beginners and the one who mostly works in a company will always have css frameworks such as Angular Material / Bootstrap / PrimeNg.
Customizing Bootstrap and Angular Material are really a headache. Sometimes it will work and sometimes it won't, trying to understand that itself will cost lot of productivity.
So look out on that , the solution that worked for me when using bootstrap/Material is I will always wrap that code/component in my own small component, write custom css classes and use this everywhere.
You don't need it when you are starting , but at some point of time you need to learn this for the betterment of the website. There is no escape. ( I have been working 1+ Year on angular , I still don't know rxjs I will be starting soon )
📝 Bookmark this if you are going to start with angular.
😱 Do you know that using await inside forEach will not work?
Know why in 2 minutes
🕸 Are you a budding web developer and in need of some cool css websites to learn from Visit Colors & Design
And If you like these type of small articles to boost your knowledge, don't forget to follow on dev.to, It motivates to write more and contribute open source.
Peace 🕊 !
DocsAI - Create AI support agents with your documents in the most affordable price, starts at 0$. Don't need a bot , but need ai help on your docs just upload and start chating !
Using for a company ? Check out our pricing Just contact me for personalized pricing !