What is ReactJs JSX?
JSX Creates Elements. We can use React.createElement like this:
var boldElement = React.createElement(‘b’, null, “Text (as a string)”);
This works fine as we had a small component, but if we had many nested components the syntax could get messy very quickly.
Using jsx we can achieve the same :
var boldElement = Text (as a string);