学习react的实例1--日历

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tan9374/article/details/77936407

 1.https://github.com/wayofthefuture/react-input-moment 这是一个github的地址,他是一个react的时间组件;

效果图:

具体是下载后放到比如F盘


2.按照上图通过npm 安装;

3.安装完后用npm输入

f:

cd 你的文件夹名字

npm start,等完成后通过浏览器打开:http://localhost:8888

4.可能会有报错的情况,应该是报-----resolve-----相关的错,没有关系,把npm关掉,从新打开;

刚刚报比如-----resolve  ‘react’ -----

那你就用npm输入

f:

 cd 你的文件夹名字

npm install react  --save

npm start

等完成后通过浏览器打开:http://localhost:8888







猜你喜欢

转载自blog.csdn.net/tan9374/article/details/77936407