React
文章平均质量分 68
FocusOnTech
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
React页面利用this.context.router.push跳转传参的接收方法
在使用React进行页面跳转传参的过程中,对于新手来说经常会遇到在接收参数的页面this.props.location is null or undefined的情况,对于接收的页面,一定要在constructor方法中添加props这个参数。 class index extends React.Component { render() { return (原创 2017-11-10 10:42:00 · 12028 阅读 · 0 评论 -
使用npm react-tools编译jsx
虽然react-tools已经被弃用,但是对于只想编译JSX的项目仍然可以使用。 首先安装好nodejs运行环境。 用如下命令安装nrm(NPM registry 管理工具): $ npm install -g nrm npm WARN deprecated coffee-script@1.7.1: CoffeeScript on NPM has moved to "coffeescri原创 2017-12-22 15:34:09 · 1528 阅读 · 0 评论
分享