title: Material-ui's Switch component onChange handler is not firing
body: <p>I've put some <code>Switch</code>es in an app and they work fine. Then I put the Switches in another app, but they don't work when clicked.</p>
  
  <p>Both apps are using the same component. Here it is working in one app:</p>
  
  <p><a href="https://i.stack.imgur.com/4d1jN.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/4d1jN.gif" alt="enter image description here"></a></p>
  
  <p>And here's the other app, not working:</p>
  
  <p><a href="https://i.stack.imgur.com/9K0TB.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/9K0TB.gif" alt="enter image description here"></a></p>
  
  <p>In the second app, the <code>onChange</code> handler doesn't seem to ever fire.</p>
  
  <p>The code in both apps looks like the following:</p>
  
  <pre><code>&lt;Switch
    checked={(console.log('checked:', status === 'visible'), status === 'visible')}
    onChange={(e, c) =&gt; console.log('event:', e, c)}
  /&gt;
  </code></pre>
  
  <p>In the first app I see the output of those <code>console.log</code>s, while in the second app I only see the initial <code>console.log</code> of the <code>checked</code> prop, but I never see any of the <code>onChange</code> prop.</p>
  
  <p>I checked if any ancestor elements have <code>click</code> handlers, and I didn't find any that are returning <code>false</code>, calling <code>stopPropagation</code>, or calling <code>preventDefault</code>.</p>
  
  <p>Notice in the gif that when I click, the ripple effect still works, so click handling is obviously still working.</p>
  
  <p>Any ideas why <code>onChange</code> may not be firing?</p>
  
  <p><strong>UPDATE!</strong> I replaced the switches with regular <code>&lt;input type="checkbox"&gt;</code> elements, and it works great! See:</p>
  
  <p><a href="https://i.stack.imgur.com/fFbda.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/fFbda.gif" alt="enter image description here"></a></p>
  
  <p>Looks to me like something is wrong with material-ui's <code>&lt;Switch&gt;</code> component. I have a hunch that I will investigate when I get a chance: there might be more than one <code>React</code> singleton in the application. I'll be back to post an update.</p>