![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
最亮的心
前端开发,c++开发,易语言开发
展开
-
使用webpack搭建一个react项目
npm initpackage.json文件配置{ "name": "serach-bar", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "webpack-dev-server --progress --profile --colors --hot",原创 2017-07-19 16:17:26 · 978 阅读 · 0 评论 -
heroku 自动部署create-react-app项目
本文介绍heroku服务器上部署react项目,会自动编译,打包源码npm install -g create-react-app create-react-app my-app cd my-app git init heroku create -b https://github.com/mars/create-react-app-buildpack.git git add . git commit转载 2017-08-18 20:49:51 · 727 阅读 · 0 评论 -
使用create-react-app自动构建react项目
npm install -g create-react-appcreate-react-app my-app cd my-app/ npm start转载 2017-07-27 15:55:54 · 272 阅读 · 0 评论 -
dva-cli域名和端口号配置
文档地址:https://github.com/sorrycc/roadhog/blob/1.x/README.md 可环境变量临时配置一些参数,包括: PORT, 端口号,默认 8000 HOST, 默认 localhost HTTPS,是否开启 https,默认关闭 BROWSER,设为 none 时不自动打开浏览器 CLEAR_CONSOLE,设为 none 时清屏 # ...原创 2018-07-31 10:46:37 · 1917 阅读 · 0 评论 -
开发 --笔记
有些浏览器的滚动条样式贼丑,还不让美化,这个组件助你一臂之力(react-free-scrollbar)原创 2019-01-04 15:26:06 · 136 阅读 · 0 评论 -
nginx 配置 react项目,首页不是index.html
nginx 配置 react项目,首页不是index.html 在 react 项目开发时, 一般有 hashHistory 和 browserHistory 的方式, 在项目打包出来之后,需要部署到服务器上面,碍于实际需求,我们的首页很有可能不是index.html , 于是在网上找了不少资料, 才配置成功这么一套部署方式, 作为参考 server { listen 801...原创 2019-01-15 17:00:40 · 1997 阅读 · 0 评论 -
解决浏览器自动回填表单问题
在目标input上面添加一个标签 <input type="password" name="password" style={{display:'none'}} />原创 2019-02-22 20:23:07 · 666 阅读 · 0 评论 -
create-react-app使用dllplugin抽取antd作为公共模块
首先说说,为什么要使用dllplugin? 在项目开发中,我们会遇到很多的依赖,体积不小,而且他们都是公共模块,基本上不会有变动,所以考虑是不是可以把这部分公共的模块抽取出来,作为静态的资源,不需要每次都打包这块 虽然有CommonsChunkPlugin插件可以抽取公共模块,但是有如下缺点 每次打包都会重新构建公共模块 只要其中的模块有微笑的变动,打包出来的公共文件就不一样,简单说,换台机器...原创 2019-04-30 10:58:58 · 3229 阅读 · 0 评论 -
组件集合
收集常用的组件 React UI框架 - antd 轮播图组件 - react-slick(https://github.com/akiran/react-slick)原创 2019-05-09 11:57:43 · 174 阅读 · 0 评论