Skip to content

Breaking Changes: Switch to named exports

Latest
Compare
Choose a tag to compare
@akshay-nm akshay-nm released this 11 May 18:57
c5c6848
  • 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'