import React from 'react'; import { Rate } from 'antd'; const App: React.FC = () => <Rate allowHalf defaultValue={2.5} />; export default App;