Search code examples
react-final-form

How to unregister a field in in react-final-form?


There is documentation on how to register a field but I don't see anything on how to unregister a field after it's been rendered. Anyone know how I can do this.


Solution

  • You just unmount (stop rendering) the Field component or the component using useField().