import * as React from 'react'; import JqxTextArea, { ITextAreaProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtextarea'; class App extends React.PureComponent<{}, ITextAreaProps> { private myTextArea = React.createRef(); constructor(props: {}) { super(props); const source: any = { dataFields: [ { name: 'CompanyName' }, { name: 'ContactName' } ], dataType: 'json', url: 'customers.txt' }; const dataAdapter: any = new jqx.dataAdapter(source); this.state = { source: dataAdapter } } public render() { return (
); } } export default App;