import './demo2.css'; import Nav from '..'; import Radio from '../../radio'; import React from 'react'; import ReactDOM from 'react-dom'; const { Item, SubNav } = Nav; interface PageStates { type: string; } class App extends React.Component<{}, PageStates> { changeType: (type: any) => void; constructor(props) { super(props); this.state = { type: 'normal', }; this.changeType = type => { this.setState({ type, }); }; } render() { const { type } = this.state; return (