Function based components in react

Function based components are a better way of creating components as compared to class based components. In Function based components, You can implement component lifecycle methods using hooks like useState, useEffect etc.

export default function Main() {
    return <div>This is a function based component</div>;
}

Web development and Automation testing

solutions delivered!!