Skip to content

v0.11.0

Compare
Choose a tag to compare
@TrySound TrySound released this 07 Feb 21:59
· 8 commits to master since this release

In this release added react hook version of rifm. Thanks to @lewisl9029

import { useRifm } from 'rifm'

const rifm = useRifm({
  format,
  value,
  onChange
})

<TextField
  type="tel"
  value={rifm.value}
  onChange={rifm.onChange}
/>

Also rifm will warn if type=date is passed to input. Thanks to @ethanwillis