Vishwa Bhat
I'm not sure if it would fit my requirement. I'd like to use the same form for crud operations and at the same time change the form submit methods(GET, PUT, POST, DELETE) based on the URL patterrns. Below are the URL patterns. The form should be intelligent enough to detect the URL patterns.
<Route path="/person/:id" component={updatePersonInfo} /> (in updatePersonInfo component the form componet should fetch the person details and prefill the form.
<Route path="/person/" component={newPerson} /> (should display the same form in the NewPerson component without any fill and the method should be set to POST)