React Router Form actions
I would like to ask question. I have vanilla React app, using createBrowserRouter from react-router-dom. I would like to use action to send data to a server. I have a form component where I have want to get all informations.So I am using input with names so I can use the in action function via formData. But I ran into a problem. Inside of my FormComponent I have a state called items. In my Form I have a div where I map over items to create div with 3 inputs. One for name,quantity and price. So far ok, I keep track of all the changes, but then when I want to submit my local items, I dont know how.