prefer-function-components
WarningDeclare React components with function, not as arrow functions assigned to a const.
const Header = () => <header />;export const Card = (props: CardProps) => { return <div {...props} />;};export function Header(props: HeaderProps) { return <header {...props} />;}const Card = memo(function Card(props: CardProps) { return <div {...props} />;});const renderItem = (item: Item) => <Row item={item} />;const Labels = ["a", "b"].map((label) => label.toUpperCase());How to fix
Write function $NAME(props: Props) { ... } or export function $NAME(...).
Wrappers such as memo(function $NAME() { ... }) are allowed.