First component in react

Here is a simple component based on functions. All it is doing is generating html mark up which is nothing but a div with text "Welcome to React"

export default function Main() {
    return <div>Welcome to React</div>;
  }

Complex problems, Simple Solutions