import * as React from 'react'; import Switch from '../../components/switch'; class SwitchTest extends React.Component { state = { switch_1: true, switch_2: false, switch_3: true, }; handleChange = (field: any, value: any) => { this.setState({ ...this.state, [field]: value }); }; render() { return (
Switches

This is more beautiful than the old fashion checkboxes...

); } } export default SwitchTest;