React Introduction
React Introduction
Shobha Rani
Associate Professor
Dept. of MCA
Frontend-Back end Technologies
function dept()
{
return <h2>Hi, I am from MCA!</h2>;
}
Now your React application has a component called dept, which returns
an <h2> element.
To use this component in your application, use similar syntax as normal
HTML: <dept />