-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
28 lines (23 loc) · 975 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React, { useCallback } from "react";
import "devextreme/dist/css/dx.light.css";
import { TextArea } from 'devextreme-react/text-area';
import notify from "devextreme/ui/notify";
const longText = "Japan is a sovereign island nation in East Asia. Located in the Pacific Ocean, it lies off the eastern coast of the Asian mainland and stretches from the Sea of Okhotsk in the north to the East China Sea and China in the southwest. The Greater Tokyo Area is the most populous metropolitan area in the world.";
function App() {
const onValueChanged = useCallback((e) => {
notify("The value has been changed");
}, []);
return (
<TextArea
value={longText}
minHeight={50}
maxHeight={300}
autoResizeEnabled={true}
maxLength={500}
valueChangeEvent="keyup"
onValueChanged={onValueChanged}
label="Country"
/>
);
}
export default App;