演示https://www.npmjs.com/package/rc-calendar#screenshots 无法运行代码https://stackblitz.com/edit/react-b2d3rb?file=demo.js
class SimpleMenu extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
value1: "",
display: false,
chipName: "",
value2: ""
};
}
render() {
const { open } = this.state;
return (
<Calendar />
);
}
}
export default SimpleMenu;
答案 0 :(得分:1)
sn3ll是正确的。只需添加CSS
import "rc-calendar/assets/index.css"