Now that’s out of the way, we’ve got two ways (currently) to create a React component:
A pure function: no lifecycle hooks
As a class: has lifecycle hooks
They’re functions implemented by React.Component that we get to override and make use of. You can find a simple example here.