How to use useState to update Data?
问题 I am building a multistep Form and I am trying to update my Data with the useState-Hook. Unfortunatly I do no how to pass the components of the hook as a prop, to update them, after performing an onClick Event Thats the important part of my code multisteform.js const defualtData = { Grundstück:'', Haus:"Haus", Wohnung:"Wohnung", Gewerbe:"Gewerbe", } const steps = [ {id: 'Häuser'}, {id: 'Fläche'}, {id: 'Grundstückerschlosse'}, {id: 'Bebauungsmöglichkeiten'} ] export const MultiStepFrom = () =>