import * as React from 'react'; import './App.css'; import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons'; import JqxInput from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxinput'; import JqxNotification from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxnotification'; import JqxTextArea from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtextarea'; class App extends React.PureComponent<{}> { private myNotification = React.createRef(); private name = React.createRef(); private email = React.createRef(); private comment = React.createRef(); constructor(props: {}) { super(props); this.onClick = this.onClick.bind(this); } public render() { return (
Thank you for your feedback!
Name:
E-mail:
Comment:
Submit comment
); } private onClick(): void { this.name.current!.val(''); this.email.current!.val(''); this.comment.current!.val(''); this.myNotification.current!.open(); } } export default App;