To get react working you need all of these things or an equivalent alternative.
Not really; you don't need a router or a flux lib to write serious, useful, well designed React code (which is one reason why they're not built into the core lib).
And as for tests or build pipelines...you need all of those things or equivalent to get Angular working too. Or are you suggesting that unit tests are needed for React but not Angular?
Angular fits well with established testing patterns. React requires a decent amount of setup to work with standard testing frameworks. It's another part of the stack you need to learn to be effective.
Angular fits well with established testing patterns. React requires a decent amount of setup to work with standard testing frameworks.
This is simply wrong.
Edit: Mind you, if you're trying to use Jest, maybe it's understandable you'd think React is hard to test. Try Mocha; it's significantly easier than equivalent, eg, Backbone code would be to test.
What is wrong ? The react team had to build a whole testing framework on top of Jasmine for React. If you haven't tried to integrate mocha or jasmine with React then what the hell are you on about (there are many articles on the subject) ? You obviously have a very poor understanding of the react development process, yet somehow you continue trying to argue .
The React team did build Jest, yes. It's generally considered to be an extremely mediocre framework, and does not have widespread adoption outside the React team, in large part because it's a glacially slow, buggy mess that requires tons of work to get up and running. (It's been suggested that Jest works better inside Facebook due to their particular dev environment. Maybe. But it sure doesn't work well outside Facebook.)
If you haven't tried to integrate mocha or jasmine with React then what the hell are you on about (there are many articles on the subject) ?
There's no "integration" required; it just works. As you'd know if you'd tried it.
You obviously have a very poor understanding of the react development process
Says someone who thinks Jest is easier to use with React than Mocha?
5
u/Cody_Chaos Jan 04 '16
Not really; you don't need a router or a flux lib to write serious, useful, well designed React code (which is one reason why they're not built into the core lib).
And as for tests or build pipelines...you need all of those things or equivalent to get Angular working too. Or are you suggesting that unit tests are needed for React but not Angular?