What counts as a component
The rules apply inside a component: a PascalCase function with at most one parameter that contains JSX.
The rules apply inside a component: a PascalCase function with at most one parameter that contains JSX. The
function may be a declaration, a function expression or an arrow function assigned to a PascalCase name. async
functions and generators never count.