import React, { useState } from 'react'; import { Button, Slider, Space } from 'antd'; const App: React.FC = () => { const [size, setSize] = useState(8); return ( <> setSize(value)} />

); }; export default App;