3 ms·
> Writing HTML back then is very similar to writing it now, only now you wrap it in a return statement and it lives in a jsx file. N.b. that is only really the
by mattlondon 4y ago
> Writing HTML back then is very similar to writing it now, only now you wrap it in a return statement and it lives in a jsx file.
N.b. that is only really the case for React/React-flavoured frameworks. Other frameworks - notably Angular - still keep HTML and CSS in their own dedicated files (n.b. in Angular you can include the HTML in the component too, but obviously this is only really something you'd want to do for simple and small components for the same reasons that JSX is a problem).
I feel like we're headed down the same old road we had before where people were conflating jQuery with JavaScript. React is not the only way, even if it is popular now. jQuery was in the same position React is now, but today is largely forgotten apart from a few people still using it - I would urge people to remember that and try to keep an open mind and broad-horizons especially in the world of JavaScript Frameworks.
- gabereiser 4y agoI’m aware, it was tongue in cheek. From my perspective (startup accelerators/incubators) it seemed like everything was react for the last 6 years. Don’t conflate my sarcasm with my understanding of javascript.
- froh 4y agoI know little enough about the topic that I took your statement at face value. I appreciate the commenter pointing out that you only spoke about the react world. Your sarcasm did not come across as such.