Regular Function vs Arrow Function

React Developer's Day 6

·

1 min read

In React, a functional components can be written in two ways:

//Regular Function
function FunctionName(props) {
  return <div />;
}

//OR

//Arrow Function
const FunctionName = (props) => {
  return <div />;
}