import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.GetRealButton.on('click', () => { let realPart = this.refs.myComplexInput.getReal(); alert("Real part is " + realPart); }); this.refs.GetImaginaryButton.on('click', () => { let imaginaryPart = this.refs.myComplexInput.getImaginary(); alert("Imaginary part is " + imaginaryPart); }); } render() { return (
) } } ReactDOM.render(, document.getElementById('app'));