title: Default function props in functional component
body: <p>So I'm looking through several SO questions and each example pertains to a Class based component not a functional component.</p>
  
  <p>So I have a Container <code>ListContainer</code> that renders <code>List</code> and I'm passing <code>toggleDrawer()</code>. I'm unable to define <code>toggleDrawer()</code> in the <code>List.defaultProps</code></p>
  
  <p><strong>ListContainer.jsx</strong></p>
  
  <pre><code>import React, { Component } from 'react';
  import List from './List';
  
  class ListContainer extends Component{
    constructor(props){...}
    const toggleDrawer = () =&gt; {...}
    render(){
      return(
        &lt;List data={data} toggleDrawer={toggleDrawer}/&gt;
      )
    }
  }
  
  ...export statement...
  </code></pre>
  
  <p><strong>List.jsx</strong></p>
  
  <pre><code>import React from 'react';
  import PropTypes from 'prop-types';
  
  function List(props){
    const { data, toggleDrawer } = props;
    const openDrawer = () =&gt; toggleDrawer();
    const renderListItems = (items) =&gt; {//renders a list};
  
    return(
      &lt;ul&gt;{renderListItems(data)}&lt;/ul&gt;
    )
  }
  
  List.propTypes = {
    toggleDrawer: PropTypes.func,
  };
  
  List.defaultProps = {
    toggleDrawer: &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; Not sure how to define toggleDrawer() here
  }
  
  ...export statement...
  </code></pre>
  
  <p>The problem I'm running into is I've tried using <code>getDefaultProps()</code> and maybe it's not being implemented correctly but that hasn't worked. All the examples I've looked at are using State components and so trying to use <code>.bind(this)</code> or <code>this.toggleDrawer.this(bind)</code> or any of the other examples I've tried aren't working either. </p>
  
  <p>What am I missing here? Or would it be better practice to just have <code>toggleDrawer: PropTypes.func.isRequired</code>. That does remove the ESLint error, but I'm not 100% on that function always being required</p>