Add React hooks eslint

This commit is contained in:
Gregory Schier
2023-04-01 15:26:57 -07:00
parent 604254257d
commit b23e56c3af
23 changed files with 151 additions and 98 deletions

View File

@@ -63,10 +63,13 @@ export function Input({
return true;
}, [currentValue, validate, require]);
const handleChange = useCallback((value: string) => {
setCurrentValue(value);
onChange?.(value);
}, []);
const handleChange = useCallback(
(value: string) => {
setCurrentValue(value);
onChange?.(value);
},
[onChange],
);
return (
<VStack className="w-full">