See: - https://www.reddit.com/r/reactjs/comments/b8h7kv/form_validation_using_custom_react_hooks/ - https://www.frontendtyped.com/2019/03/31/react-ts - https://github.com/Upmostly/custom-react-hooks-form-validation In https://github.com/tkrotoff/react-form-with-constraints/blob/v0.12.0/examples/PlainOldReact/App.tsx#L57 use `e.target.name`? See https://github.com/Upmostly/custom-react-hooks-form-validation/blob/7d08e8b7d65f1387d42ae1632493b756f972f81c/src/useForm.js#L23
See:
In https://github.com/tkrotoff/react-form-with-constraints/blob/v0.12.0/examples/PlainOldReact/App.tsx#L57 use
e.target.name? See https://github.com/Upmostly/custom-react-hooks-form-validation/blob/7d08e8b7d65f1387d42ae1632493b756f972f81c/src/useForm.js#L23