text: import * as React from 'react';
  import Checkbox from '@material-ui/core/Checkbox';
  
  export default function ControlledCheckbox() {
    const [checked, setChecked] = React.useState(true);
  
    const handleChange = (event) => {
      setChecked(event.target.checked);
    };
  
    return (
      <Checkbox
        checked={checked}
        onChange={handleChange}
        inputProps={{ 'aria-label': 'controlled checkbox' }}
      />
    );
  }
  