If you’re using React Hook Form, the new lenses addon makes it miles easier to create strongly typed reusable fields: github.com/react-hook-f... Got rid of so many generics with this, and everything is still typed properly.
github.comGitHub - react-hook-form/lenses: The library's composable lens operations make it simple to work with deeply nested structures while maintaining type safety, leading to more maintainable and reusable ...The library's composable lens operations make it simple to work with deeply nested structures while maintaining type safety, leading to more maintainable and reusable form components. - react-h...
0 reposts1 like