title: How to sent parameter in SwipeableDrawer of material ui in reactjs
body: <p>This is my SwipeableDrawer of material-ui</p>
  
  <pre><code>const sideList = (
  &lt;/List&gt;
    &lt;ListItem button component={Link} to="/todos"&gt;
      &lt;ListItemText primary="Todos" /&gt;
    &lt;/ListItem&gt;
  &lt;/List&gt;
  )
  </code></pre>
  
  <pre><code>&lt;SwipeableDrawer
    open={this.state.left}
    onClose={this.toggleDrawer('left', false)}
    onOpen={this.toggleDrawer('left', true)}
  &gt;
  &lt;div tabIndex={0}
    onClick={this.toggleDrawer('left', false)}
    {sideList}
  &lt;/div&gt;
  &lt;/SwipeableDrawer&gt;
  </code></pre>
  
  <p>I need to set the <code>dashboard</code> value here based on the list I choose' </p>
  
  <pre><code>toggleDrawer = (side, open) =&gt; () =&gt; {
   this.setState({
      [side]: open,
      dashboard: 
   });
  };
  </code></pre>
  
  <p>I have a menu like this: </p>
  
  <pre><code>{this.state.dashboard}
  </code></pre>
  
  <p>How do I set the value of dashboard equal to 'Todo'? As that is what I have selected from the list.</p>