import * as React from 'react'; import JqxRating from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxrating'; class App extends React.PureComponent<{}> { private rate = React.createRef(); constructor(props: {}) { super(props); this.onChange = this.onChange.bind(this); } public render() { return (
Rating:
); } private onChange(event: any) { const rate = this.rate.current!; rate.innerHTML = ' ' + event.value + ''; } } export default App;