News for hackers. Stuff that matters.
Re:Angular 9.0 by kabes on Friday February 07, 2020 @12:05AM (#22263387)
I've used both for non-trivial apps. I find angular heavily over-engineered. The problem is not just the learning curve, but the fact it becomes almost impossible to do anything the framework authors didn't envisage. React is just plain functions so you can do whatever you want, it never got in my way.

Now, if angular would prove substantially better in terms of performance or maintainability or so, that might've been ok. But they're not. Performance is on par, I find refactorings actually harder because of the heaps of boilerplate angular requires, etc. They invented way too complex solutions to solve problems that either don't exist, or other frameworks solved better.

Re:Angular 9.0 by zaphirplane on Friday February 07, 2020 @01:10AM (#22263630)
That is an unfair comparison a fairer one is react + redux + hooks + middleware thunk + routing vs angular. You are still probably right in what is simpler. Just angular is kind of the kitchen sink option
Re:Angular 9.0 by kabes on Friday February 07, 2020 @02:43AM (#22263963)
I'm comparing my experience from rather big real world apps. So the react app had all of that (didn't use redux though).

To give just one example. If you want to dynamically import components, in react you just use a dynamic import, since it's just like importing any other js function. Compare this to the angular way and draw your own conclusions: https://angular.io/guide/dynamic-component-loader . Granted, angular may have things that are easier to achieve than react as well. And I don't like the looks of jsx and so on. But my generic experience was that angular was always working against me. It reminded me of my java EE days.

Re:Angular 9.0 by kumarvvr on Friday February 07, 2020 @12:31AM (#22263481)
I am curious. I have never used Angular or React seriously. But I have an upcoming project where I have to use an external HTML Canvas library.

Would you suggest I go with Angular or React?

It's a fairly complex project, involving user based label designs, data manipulation, etc.

I am API based server and a heavyweight front-end.

Re:Angular 9.0 by jb300 on Friday February 07, 2020 @01:45AM (#22263763)
Have used Angular2 since alpha for a big project. Switched to React + Typescript for the next project. In my opinion React + Typescript is the way to go, especially if you'll use external libraries.
Re:Angular 9.0 by kabes on Friday February 07, 2020 @02:51AM (#22263995)
React and angular basically both do the same thing: render a component tree to (usually) the DOM. You use a framework to make this easier for you and I think react does that way better. But if it's all about raw data manipulation and using that canvas lib, you may not need either?

Never used it myself, but the guys from Flipboard made this react canvas renderer which might be useful for you: https://github.com/Flipboard/react-canvas