摘要: 1.组件化开发 2.和其它jquery这些怎么共存 3.单向数据流 4.视图层框架-> 层级深的传值交给其它处理 比如redux 5.函数式编程:a.前端自动化测试 阅读全文
posted @ 2021-02-28 20:41 囚龙棒主 阅读(68) 评论(0) 推荐(0)
摘要: 1.组件的传值 父组件传值给子组件 属性的形式 🌰: <div> <TodoItem content="1234" /> </div> 子组件引用{this.props.content} 子组件传父组件 2.总结组件的通信 子组件传递数据到父组件 第一步:子组件添加事件属性 第二步: 子组件调用调 阅读全文
posted @ 2021-02-28 20:20 囚龙棒主 阅读(145) 评论(0) 推荐(0)
摘要: 1.安装create-react-app yarn add global create-react-app 2.创建项目 create-react-app xcb-cargo 3.本章重点组件知识 import React,{Component} from 'react' // import Rea 阅读全文
posted @ 2021-02-28 17:58 囚龙棒主 阅读(102) 评论(0) 推荐(0)