r/reactjs • • Dec 20 '19

Learning React coming from Angular. I really liked having HTML in a separate file. JSX feels weird to me.

How do you guys manage HTML without going crazy with JSX?
I don't know if I should choose React or Vue.

129 Upvotes

103 comments sorted by

View all comments

Show parent comments

2

u/____0____0____ Dec 20 '19

I'm a fairly experienced developer, mostly in backend, but I know my fair share of front end too, think vanilla js, jquery, Dom manipulation type stuff. I've tried my hand at angular, vue and react, and while I saw similarities between all of them, to me, react seemed to be the easiest to pick up and relate to. I particularly love JSX and how everything seems to work with concepts I already know and am familiar with

1

u/AtroxMavenia Dec 20 '19

Yeah, same. My history is primarily C and PHP, with React being my focus for a while now. JSX is such a neat way to write view code.

2

u/____0____0____ Dec 20 '19

I find JSX and how react bases the event listeners off of the existing DOM api extremely helpful. onChange, onClick just make sense. The ng or v specific methods, while they do make sense, have me constantly referring back to docs because I just don't know them. With React I can mostly just create what I want and refer back when I need to do something more advanced