From React to Angular
As a React developer, learning Angular felt like walking into someone else's house and asking where they keep the forks.
In React, life is simple
Need something? Install a package.
Need routing?
Install one.
Need forms?
Install another.
Need state management?
Good luck choosing between the other 37 options.
React is basically LEGO. You build everything yourself.
Then I opened Angular.
Angular looked at me and said:
"Relax. I already packed your lunch."
Routing? Built in.
Forms? Built in.
HTTP client? Built in.
Testing? Built in.
CLI? Built in.
It even tells you where to put your files. You don't get to have an existential crisis over folder structures anymore.
The biggest mind-bender for me was Dependency Injection.
In React, if I need an API, I usually import it.
In Angular, I just... ask for it.
constructor(private userService: UserService) {}
That's it.
Angular is basically that one organized friend who says:
"Don't worry, I already brought everything."
And honestly? I kind of respect it.
So if React is like cooking in your own kitchen where you choose every ingredient and every pan Angular is like checking into a nice hotel. Everything is already there. You just need to learn where they put the towels.
I'm still a React fan, but I'm starting to see why so many enterprise developers love Angular.
Maybe they weren't trying to convert me...
Maybe they were just tired of installing packages. đ