Problem
When getting the form controls, there should be a way to define if it's an input, textarea or select.
Because right now, the returned JSX is always an input.
const formControls = getFormControls<Person, 'firstName' | 'age' >([
{
type: 'text',
name: 'firstName',
},
{ type: 'number', name: 'age' },
]);
Problem
When getting the form controls, there should be a way to define if it's an
input,textareaorselect.Because right now, the returned JSX is always an
input.