3 ms·
There's nothing wrong with ternary operators in my opinion - maybe it's just a subjective thing. Most interesting thing in React for me is the ability to pass
by EugeneOZ 6y ago
There's nothing wrong with ternary operators in my opinion - maybe it's just a subjective thing.
Most interesting thing in React for me is the ability to pass an element as an argument to another component - it's impossible in Angular. I’m not sure there is a lot of real-life cases for this feature, but still, I’m impressed by this level of flexibility.
React isn't just V of MVC, it's VC at least, letting you write your models wherever you want (pure js functions? classes - go ahead).
Some advantages of React are the weak points simultaneously - ngModel, ngIf, ngFor - they are removing a lot of boilerplate you have to write in React.