difference between class based component and functional component react code example
Example: react functional components
const component = () => {
console.log("This is a functional Component");
}
const component = () => {
console.log("This is a functional Component");
}