title: propType [name] is not required, but has no corresponding defaultProps declaration ReactJS
body: <pre class="lang-js prettyprint-override"><code>import styled from 'styled-components'
  import propTypes from 'prop-types'
  import React from 'react'
  
  const Checkbox = ({ className, checked, ...props }) =&gt; (
    &lt;CheckboxContainer className={className}&gt;
      &lt;HiddenCheckbox checked={checked} {...props} /&gt;
      &lt;StyledCheckbox checked={checked}&gt;
        &lt;Icon viewBox=&quot;0 0 24 24&quot;&gt;
          &lt;polyline points=&quot;20 6 9 17 4 12&quot; /&gt;
        &lt;/Icon&gt;
      &lt;/StyledCheckbox&gt;
    &lt;/CheckboxContainer&gt;
  )
      
  Checkbox.propTypes = {
    checked: propTypes.boolean,
    className: propTypes.string,
  }
  </code></pre>
  <p>I have this component and I'm always getting this error: error  propType &quot;className&quot; is not required, but has no corresponding defaultProps declaration  react/require-default-props</p>
  <p>I don't know how to fix it any suggestions, please?</p>