werichardson
Explore posts from serversBetter Way to Write This?
Hey y'all! I have some code that works, but I can't help but feel there must be a better way to write it.
I have this form, and I created a
Field
component.
Field's will only be input
elements or textarea
elements.
The way I have it now, I create signals for the refs, then pass the signal into the Field
component, which sets the ref
appropriately:
Then, the Field
component: https://sourceb.in/vtBHriCHuF
Is this the best way to do this? Or is there a better option?3 replies