react
共 3 篇文章
(三)建立React、redux和antd项目
一.框架基本描述 二.建立项目 根据上一节2、3点所说方试建立 npm init npm install antd history jquery react react-dom redux react-redux react-router redux-promise-middleware redux-thunk redux-logger --save npm install autoprefixer babel babel-cli babel-core babel-loader babel-plugin-antd babel-plugin-import babel-plugin-transf…
2017-05-09 16:29 · react
(二)使用npm搭建React项目
一.在内地npm预设是连线到国外的registry,我们可已更改为taobao代理的registry,这样安装包的速度可已加快 npm config set registry https://registry.npm.taobao.org 预设是 npm config set registry https://registry.npmjs.org 二.使用npm建立项目package.json 切换到项目的目录下,直接下 npm init,输入相关资料,若不输入则使用预设即可 三.使用npm安装开发用的依赖包 安装全域使用的包,npm install 命令后加入 -g npm install…
2017-05-09 16:27 · react
(一)React开发环境搭建
一.安装Nodejs 1.下载windows平台nodejs环境安装包, nodejs官网 ,找到DOWNLOADS点击,找到Windows Installer 如果为64位电脑可以选择64位版本,点击下载后安装。 2.开启cmd命令视窗,打上 npm -v 查看npm是否可正常执行,我们使用Nodjs的npm作为包管理器。 3.npm安装package速度较慢慢,改用taobao的npm registry,可下如下指令: npm install -g cnpm --registry= https://registry.npm.taobao.org 4.npm 基本指令说明 在package…
2017-05-09 16:26 · react