I'm aware of the benefits, of making a component stateless. What I'm not aware of is - what's the difference between making the component as a const or a function. I'm a bit confused, because I've seen several examples, using both.
function MyComponent(props) {
return(
<div>Hello world</div>
)
}
vs.
const MyComponent = (props) => {
return(
<div>Hello world</div>
)
}
Would be great with an explanation what to choose correctly