You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, I have a lot of forms to either create or edit some object. Most of the time, the fields and forms are almost identical, except perhaps one of two fields (eg can't update the "id" field in Edit).
Would there be a way to efficiently share those forms so that I can have the same implementation code for my React view for both (eg a shared CreateOrEditForm.tsx)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my application, I have a lot of forms to either create or edit some object. Most of the time, the fields and forms are almost identical, except perhaps one of two fields (eg can't update the "id" field in Edit).
Would there be a way to efficiently share those forms so that I can have the same implementation code for my React view for both (eg a shared CreateOrEditForm.tsx)?
Beta Was this translation helpful? Give feedback.
All reactions