随笔分类 -  react

摘要:1.实用目的: 在组件中,如果一个组件的某一个功能需要重复实用,那么就可以使用 render props方法。 2.步骤: 1) 创建某个组件,在组件中提供复用的状态(1.状态 2.修改状态的方法) 1.状态 this.state = { x:0, y:0 } 2. 修改方式 mouseXY=e=> 阅读全文
posted @ 2020-03-27 00:06 流年碎 阅读(549) 评论(0) 推荐(0)
摘要:1、 项目中在android/app/src/main/创建文件夹 assets 2、项目中执行命令 1、 项目中在android/app/src/main/创建文件夹 assets 2、项目中执行命令 react-native bundle --platform android --dev fal 阅读全文
posted @ 2020-01-13 10:20 流年碎 阅读(650) 评论(0) 推荐(0)
摘要:警告 : Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel 阅读全文
posted @ 2019-07-18 16:55 流年碎 阅读(1187) 评论(0) 推荐(0)