随笔分类 -  reactJS+react native

摘要:202401221657_《React相关(一) 写法》//写法一 等价于写法二 const MyComponent = () => { //... } //写法二 const MyComponent: React.FC = () => { //... } 阅读全文
posted @ 2024-01-22 17:01 Coca-code 阅读(20) 评论(0) 推荐(0)
摘要:1.使用React Native开发iOS应用需要OSX系统,Xcode,Homebrew,node,npm以及watchman。2. js与OC交互共11个步骤。 阅读全文
posted @ 2015-06-25 15:05 Coca-code 阅读(142) 评论(0) 推荐(0)
摘要:1. 需要IOS的基础知识。2. JSX语法3. 虚拟DOM、单向数据注入(虚拟 DOM 到真实 DOM)4. react知识view,可以配合其他类库使用5. 重要方法: a. render();——返回一些列的组件。 b.this.props ;——获取父组件传递给子组件的数据。 c.this.... 阅读全文
posted @ 2015-06-25 11:51 Coca-code 阅读(191) 评论(0) 推荐(0)