how to create a react app using functional components code example
Example 1: functional component react
function Welcome(props) {
return Hello, {props.name}
;
}
function App() {
return (
);
}
ReactDOM.render(
,
document.getElementById('root')
);
Example 2: react functional components
const component = () => {
console.log("This is a functional Component");
}