http://jsfiddle.net/Brj8m/

container
    );
    expectClickThru(btn);
  });
  it('should not forward clicks when it becomes disabled', function() {
    var container = document.createElement('div');
    var btn = ReactDOM.render(
      <button onClick={onClick} />,
      container
    );
    btn = ReactDOM.render(
      <button disabled={true} onClick={onClick} />,
      container
    );
    expectNoClickThru(btn);
  });
  it('should work correctly if the listener is changed', function() {
    var container = document.createElement('div');
    var btn = ReactDOM.render(
      <button disabled={true} onClick={function() {}} />,
      container
    );
    btn = ReactDOM.render(
      <button disabled={false} onClick={onClick} />,
      container
    );
    expectClickThru(btn);
  });
});