====== What is JSX ======
Do not let the name fool you. It is basically JSX is a HTML-like language for React component to return it UI. It is a syntactic sugar for React.createElement(). The following React functional component return a JSX within the ''()''.
**One thing to note that for HTML class name, JSX does not support the name ''class'', and we need to use ''className'' instead.** Otherwise, it just like write HTML with binding supported.
function App() {
return (
Work times fun!
);
}
===== Trouble Shooting =====
==== Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...>? ====
You need to put your JSX code inside one container, like putting everything inside a div block like
return (
);