What is JSX?
JSX is a XML-like syntax extension to ECMAScript (the acronym stands for JavaScript XML). Basically it just provides syntactic sugar for the React.createElement()
function, giving us expressiveness of JavaScript along with HTML like template syntax.
In the example below text inside <h1>
tag is returned as JavaScript function to the render function.
class App extends React.Component {render() {return (<div><h1>{'Welcome to React world!'}</h1></div>);}}
March 27, 2022
3458
Read more
What is React?
November 06, 2022
ReactJSHow to programmatically trigger click event in React?
November 06, 2022
ReactJS