You get a bonus - 1 coin for daily activity. Now you have 1 coin

What is JSX? in REACT

Practice



JSX is an XML-like syntax extension for ECMAScript (the abbreviation stands for JavaScript XML ). Essentially, it simply provides syntactic sugar for the

React.createElement()
function, giving us the expressiveness of JavaScript along with an HTML-like template syntax.

In the example below, the text inside the

<h1>
tag is returned as a JavaScript function to the render function.

 

class App extends React.Component {
  render() {
    return(
      <div>
        <h1>{'
Welcome to the world of React
!'}</h1>
      </div>
    )
  }
}

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone