DEV Community

[Comment from a deleted post]
Collapse
 
matthewbdaly profile image
Matthew Daly • Edited

It is really weird when you first start using it, but there's really not that much to JSX that you don't already know.

There's a handful of keywords like class and for that can't be used in a Javascript file because they're reserved words, so they're replaced with className and htmlFor, for example. Otherwise it's all just the HTML and JS you already know - there's not really any templating-specific syntax you have to learn. Some of the conditional logic seems a bit weird if you're not used to it, such as using something like {showAlert && <span className="alert">Alert!</span>}, but it's all stuff you'll have seen before, just in a slightly different context.

React is also conceptually simpler than something like Vue. A React component is in essence just a function that takes in arguments as props and spits out HTML, and that's relatively easy to understand.

Collapse
 
jonrandy profile image
Jon Randy 🎖️

I know and understand full well what it is. It's just plain awful