title: How can I use e.preventDefault() in a function with more parameters?
body: <p>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.</p>
  
  <pre><code>handleSubmit = (event, param1, param2) =&gt; {
      event.preventDefault();
  
      this.setState(prevState =&gt; {
          // piece of code where i need to use the other parameters    
     }); 
  }
  </code></pre>