79342651

Date: 2025-01-09 12:51:22
Score: 0.5
Natty:
Report link

You need to define the Props type first.

type PropsType = {
  handleDrawerToggle: () => void; // function prop
  drawerWidth: number
}

const Sample: React.FC<PropsType> = ({ handleDrawerToggle, drawerWidth }) => {.....}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: BetterTeng