DEV Community

Discussion on: Angular Dev's first React project - Netflix clone

Collapse
 
ajitsinghkaler profile image
Ajit Singh

Component creation is hard on Angular wrt React in React you can just write a function and return Jax it is a component in Angular there are decorators, lifecycle methods. We can use useContext hook to share data given by hooks. Then you can use redux too. Hooks are great for handling component state. That is what I think

Collapse
 
fyodorio profile image
Fyodor

Thanks, that makes sense.

In terms of component creation, I think in React the amount of boilerplate is definitely much less. Though I don't think it's too complex in Angular. It's repetitive and when you work with it day-by-day, you don't even notice that. As a benefit, it gives a great separation of concerns - each thing has it's well-defined place, which is quite useful when you work in a dev team.

Thread Thread
 
ajitsinghkaler profile image
Ajit Singh

Yeah it's not a big hassle in Angular it's just while working with react I found component creation easier than Angular