3 ms·
Idiomatic React code would not mix views and business logic. (You shouldn't have business logic on your React component's; that belongs in a completely differe
by Lazare 11y ago
Idiomatic React code would not mix views and business logic. (You shouldn't have business logic on your React component's; that belongs in a completely different part of that app.)
As for testing, you can do testing a lot of different ways, including BDD or DDD (I'm using a fair amount of DDD in the project I'm working on). But other than being a bit easier to test than many competing techs, there's nothing special about testing React code. And no, basically no one outside of Facebook is using Jest; it's a terrible testing tool. (I don't get the feeling you've spent much time writing or learning React? At any rate you seem to have some odd ideas about testing and React.)
Aurelia is great, but I think you're vastly overestimating the differences between an idiomatic Aurelia-based project and an idiomatic React-based project, and underestimating the flexibility which React enables.