import * as React from 'react'; import JqxMenu, { IMenuProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxmenu'; class App extends React.PureComponent<{}, IMenuProps> { private myMenu = React.createRef(); constructor(props: {}) { super(props); this.state = { source: [ { html: "Mail", items: [ { html: "Calendar" }, { html: "Contacts" } ] }, { html: "Inbox", items: [ { html: "Admin" }, { html: "Corporate" }, { html: "Finance" }, { html: "Other" }] }, { html: "Deleted Items" }, { html: "Notes" }, { html: "Settings" }, { html: "Favorites" } ] } } public render() { return ( ); } } export default App;