DevClad-Inc / devclad

Prefer event handler naming conventions in JSX JS-0411
Anti-pattern
Minor
2 years ago2 years old
Handler function for onClick prop key must be a camelCase name beginning with 'handle' only
49									{({ active }) => (
50										<button
51											type="button"
52											onClick={item.onClick}53											className={classNames(
54												active ? 'text-neutral-100' : 'text-neutral-400',
55												'block px-4 py-2 text-sm'