import Radio from '..'; import Switch from '../../switch'; import React from 'react'; import ReactDOM from 'react-dom'; interface PageStates { disabled: boolean; } class App extends React.Component<{}, PageStates> { toggleDisabled: () => void; constructor(props) { super(props); this.state = { disabled: true, }; this.toggleDisabled = () => { this.setState({ disabled: !this.state.disabled, }); }; } render() { return ( disabled:{' '}


Disabled Disabled
); } } ReactDOM.render(, document.getElementById('radio-demo-4'));