- Switch to typscript! (the library now has types)
- Add a hook which exposes state related to a single text input aka useTextInputState
- Switch to named imports. useFormState is no longer accessible as default import.
- The library now exports 2 hooks
useTextInputState
useFormState
You can import both of them like:
import { useFormState, useTextInputState } from '@akshay-nm/use-form-state'