Skip to content

v3.2.0

Compare
Choose a tag to compare
@iusehooks iusehooks released this 08 Jan 12:50
8970a22

Improvement:

  • useSelector : useSelector(selector: Function) allows to pick a single "Field" from the Form state using a selector function.
  • Update documentation.
  • Some code refactoring.

Example:

function Counter() {
  const [counter, setCounter] = useSelector(state => state.counter)
  return <span>{counter}</span>
}