摘要:
How Does React Native Work? The idea of writing mobile applications in JavaScript feels a little odd. How is it possible to use React in a mobile envi 阅读全文
posted @ 2019-07-05 19:04
zzfx
阅读(303)
评论(0)
推荐(0)
摘要:
面向virtual DOM编程 vs 面向native componet编程; 状态编程引起的UI变化会全部提交到native compnent然后走平台原来的渲染流程。 The DOM is just one of the rendering environments React can rend 阅读全文
posted @ 2019-07-05 18:44
zzfx
阅读(710)
评论(0)
推荐(0)
摘要:
一个node的状态发生变化; 会对当前结点和子节点的数据全部进行更新; 然后进行dom比较; 比较完毕后一次性提交; 相对于以前的渲染方式: 每一个node的数据发生变化,都会产生一次渲染提交; 以上内容为猜测。 阅读全文
posted @ 2019-07-05 18:15
zzfx
阅读(182)
评论(0)
推荐(0)
摘要:
Babel is a JavaScript compiler Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaSc 阅读全文
posted @ 2019-07-05 17:57
zzfx
阅读(305)
评论(0)
推荐(0)
摘要:
source code: 开源库 rn源代码 native源代码 sourcecode tool: npm react-native vscode xocde、vscode ide+tools+package: vscode + 插件 + package.dependecdev core: proj 阅读全文
posted @ 2019-07-05 16:36
zzfx
阅读(548)
评论(0)
推荐(0)
摘要:
下面是一个更完整的package.json文件。 { "name": "Hello World", "version": "0.0.1", "scripts": { "start": "node index.js" }, "dependencies": { "express": "latest", 阅读全文
posted @ 2019-07-05 11:42
zzfx
阅读(3600)
评论(0)
推荐(0)
摘要:
npm install在安装node模块时,有两种命令参数可以把它们的信息写入package.json文件。 –save –save-dev 那二者的区别在哪里呢? –save会把依赖包名称添加到package.json文件dependencies键下,–save-dev则添加到package.js 阅读全文
posted @ 2019-07-05 11:01
zzfx
阅读(2145)
评论(0)
推荐(0)