4 ms·
JSX can also be a hard sell for seasoned developers because they've been taught to avoid combining HTML and JS for so long. I initially disliked the Angular tem
by botskonet 10y ago
JSX can also be a hard sell for seasoned developers because they've been taught to avoid combining HTML and JS for so long. I initially disliked the Angular templating system because it felt like I was regressing to `on-click="javascript()` code.
While I prefer JSX now, mainly because it is just html/javascript, I sometimes feel that inline conditions/loops like `ng-if` are cleaner - I don't need yet another several lines of a `var` definition, condition, and assignment.
My biggest struggle with React was due to the fact it's a view-only library. Coming from Angular or similar projects you're suddenly in the dark on how best to manage ajax, forms, etc - yet when you power through, you realize it's actually freedom to do whatever you want. Done correctly, that's way more powerful.