---
order: 99
title:
zh-CN: Style debug
en-US: Style debug
debug: true
---
## zh-CN
buggy!
## en-US
buggy!
```tsx
import * as React from 'react';
import { Menu, MenuProps, Switch } from 'antd';
import { MailOutlined, AppstoreOutlined } from '@ant-design/icons';
const { SubMenu } = Menu;
interface DemoState {
theme: 'light' | 'dark';
current: string;
}
class Demo extends React.Component<{}, DemoState> {
state: DemoState = {
theme: 'dark',
current: '1',
};
changeTheme = (value: boolean) => {
this.setState({
theme: value ? 'dark' : 'light',
});
};
handleClick: MenuProps['onClick'] = e => {
console.log('click ', e);
this.setState({
current: e.key,
});
};
render() {
return (
<>