如何不使用npm正确渲染datepicker?

时间:2018-10-26 07:11:46

标签: reactjs react-datepicker react-dates react-datetime

这是我的代码,我不能使用npm

<DatePicker className="form-control" Delected={this.state.startDate}                            
onChange={this.handleChange}name="startDate"                          
dateFormat="MM/DD/YYYY"/>

<script src="~/scripts/react.js"></script>
<script src="~/scripts/react-dom.js"></script>
<script src="~/Scripts/react-date-picker.js"></script>

This is how it looks when we render it

我尝试了许多CSS文件,cdn的所有内容都请帮帮我

1 个答案:

答案 0 :(得分:0)

似乎您缺少标题为“ react-datetime.css”的默认样式表,该样式表可以在GitHub repository for react-datetime by user YouCanBookMe上找到。