I'm working on a form in React and I need to use event.preventDefault. At the same time I also need to pass other parameters to the parent function. I tried adding them normally using the code below, but it doesn't seem to work; how can I do that? I already looked at other questions but had no luck finding a solution.
handleSubmit = (event, param1, param2) => {
event.preventDefault();
this.setState(prevState => {
// piece of code where i need to use the other parameters
});
}