随笔分类 - react
摘要:1.实用目的: 在组件中,如果一个组件的某一个功能需要重复实用,那么就可以使用 render props方法。 2.步骤: 1) 创建某个组件,在组件中提供复用的状态(1.状态 2.修改状态的方法) 1.状态 this.state = { x:0, y:0 } 2. 修改方式 mouseXY=e=>
阅读全文
摘要:1、 项目中在android/app/src/main/创建文件夹 assets 2、项目中执行命令 1、 项目中在android/app/src/main/创建文件夹 assets 2、项目中执行命令 react-native bundle --platform android --dev fal
阅读全文
摘要:警告 : 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
阅读全文

浙公网安备 33010602011771号