JSX in React | Why use JSX in React

 JSX (JavaScript XML) JSX helps us to write HTML Elements in JavaScript and Place into DOM without createElemant() or appendChild() methods.


const newheader=<h1>My First JSX </h1>;
const root=ReactDom.createRoot(document.getElementById('root'));
root.render(newheader);


Comments

Popular posts from this blog

Basic Web Design with HTML and CSS

Project Web Design Assignment