码迷,mamicode.com
首页 >  
搜索关键字:react    ( 7438个结果)
深入浅出React Native 3: 从零开始写一个Hello World
这是深入浅出React Native的第三篇文章。 1. 环境配置 2. 我的第一个应用 将index.ios.js中的代码全部删掉,为什么要删掉呢?因为我们准备从零开始写一个应用~学习技术最好的方式就是自己动手写,看别人的代码一百遍的效果也不如自己写一遍来的效果大~ 我们要做的事情主要分成以下两步 ...
分类:其他好文   时间:2016-03-29 21:26:46    阅读次数:203
React.js实现原生js拖拽效果及思考
一、起因&思路 不知不觉,已经好几天没写博客了。。。近来除了研究React,还做了公司官网。。。 一直想写一个原生js拖拽效果,又加上近来学react学得比较嗨。所以就用react来实现这个拖拽效果。 首先,其实拖拽效果的思路是很简单的。主要就是三个步骤: 1.onmousedown的时候,启动可拖 ...
分类:Web程序   时间:2016-03-29 18:05:21    阅读次数:363
[React] React Router: Named Components
In this lesson we'll learn how to render multiple component children from a single route. Define a named component by "components": 'header' and 'body ...
分类:其他好文   时间:2016-03-29 14:46:05    阅读次数:189
webpack 打包一个简单react组件
安装Webpack,并加载一个简单的React组件 全局的npm模块安装: 安装jsx-loader 默认使用当前目录的自己新创建的webpack.config.js作为配置文件 定义了一个简单的React组件hello.js,使用ES6语法 创建entry.js入口文件,将一个Hello组件输出到 ...
分类:Web程序   时间:2016-03-29 12:35:32    阅读次数:249
[React] React Router: IndexRoute
IndexRoute allows us to define a default child component to be rendered at a specific route when no other sub-route is available. When Home page displ ...
分类:其他好文   时间:2016-03-29 00:57:07    阅读次数:425
[React] React Router: Nested Routes
Since react-router routes are components, creating nested routes is as simple as making one route a child of another in JSX. Make the nested component ...
分类:其他好文   时间:2016-03-29 00:39:21    阅读次数:186
阅读寒冬前端大神文章有感
最近,在微博上面看到了寒冬大神的一篇文章,甚是认同,所以写下自己觉得有用的地方: 我认为,前端开发主要在两个方面,一部分是”能力”,一部分是”知识”。我个人的观点,能力占百分之八十,知识占百分之二十。 最新出来的Angular、React、ES2015,其实都在知识里面,知识又分成两部分,一部分我把 ...
分类:其他好文   时间:2016-03-28 21:53:58    阅读次数:290
react-native upoad imagepicker
1.不需要组建就可以上传了,用RN自带的formdata实现、 然后放在在fetch或XMLHttpRequest里提交就好了 这里一个大坑是要指定type,不指定的话就会出错 2."react-native-fileupload"上传图片,安卓需要用这个,ios可以直接用XMLHttpReques ...
分类:其他好文   时间:2016-03-28 10:18:37    阅读次数:170
React(0.13) 服务端渲染的两个函数
1.React.renderToString 函数, 参数是组件,返回一个字符串 2.另一个服务端渲染函数: React.renderToStaticMarkup ,他没有data属性 两者在什么时候使用呢? 当且仅当你不打算在客户端渲染这个React Component时,才应该选择使用React ...
分类:其他好文   时间:2016-03-28 10:17:50    阅读次数:133
[React] React Router: activeStyle & activeClassName
react-router provides two props for setting a specific style on a Link component whose path matches our current route. activeStyle allows for an inlin ...
分类:其他好文   时间:2016-03-28 07:05:00    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!