title: How to create a function that doesn't do anything in React
body: <p>There is a component that must be build which must receive a function for onClick. The problem is that the function is not defined yet so it must receive some 'empty' function in order to pass the tests.</p>
  <p>This is the code:</p>
  <pre><code>  &lt;Button
      title='MyTitle'
      className='my-class-name'
      onClick={
        () =&gt;
          /* eslint-disable no-console */
          console.log('test')
        /* eslint-enable no-console */
      }
    /&gt;
  </code></pre>
  <p>So I added a <code>console.log()</code> but eslint doesn't like it so the comments before and after it were added.</p>
  <p>Is there a way to put a function that doesn't do anything just to pass the linting?</p>