import './demo1.css';
import React from 'react';
import ReactDOM from 'react-dom';
import Switch from '..';

function onChange(checked) {
  console.log(`switch to ${checked}`);
}

ReactDOM.render(
  <div>
    <Switch autoWidth defaultChecked={false} onChange={onChange} />
  </div>,
  document.getElementById('switch-demo-1'),
);
