import React, { useState } from 'react'; import { Col, InputNumber, Row, Slider } from 'antd'; const IntegerStep = () => { const [inputValue, setInputValue] = useState(1); const onChange = (newValue: number) => { setInputValue(newValue); }; return ( ); }; const DecimalStep = () => { const [inputValue, setInputValue] = useState(0); const onChange = (value: number) => { if (isNaN(value)) { return; } setInputValue(value); }; return ( ); }; const App: React.FC = () => (
); export default App;