ant design pro v5 获取动态菜单与基于角色权限管理视频教程 准备更新中
世界上最伟大的投资就是投资自己的教育
https://medium.freecodecamp.org/react-binding-patterns-5-approaches-for-handling-this-92c651b5af56
https://github.com/andreypopp/autobind-decorator
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
constructor(props) {
super(props)
this.state = {
name: ''
}
this.handleChange = this.handleChange.bind(this);
}
handleChange = e => {
this.setState({
name: e.target.value
})
}
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p>{ this.state.name }</p>
<input type="text" onChange={ this.handleChange } />
</div>
);
}
}
export default App;
1Freereact 技巧 #1 如何用 netlify 云服务部署 react 应用
2Freereact 技巧 #2 把 react 应用部署到 GitHub Pages
3Freereact 技巧 #3 react-router 教程 part 1
4Freereact 技巧 #4 react-router 教程 part 2
5ProReact 进阶提高 #5 React.PureComponent
7FreeReact 进阶提高 #7 context(上下文)
9ProReact 进阶提高 #9 强大酷炫好玩的 web IDE 工具(鼠标点击生成代码,缩减 N 倍开发时间)
10FreeReact 进阶提高 #10 用高阶组件来重构代码
11ProReact 进阶提高 #11 我最爱的 React 库 - 功能强大的可插入组件 (简化代码)
12ProReact 进阶提高 #12 返回多个组件的正确方式
13FreeReact 进阶提高 #13 netlifyctl 一键部署前端应用
14FreeReact 进阶提高 #14 defaultProps 和 类型检查 PropTypes part 1
15ProReact 进阶提高 #15 类型检查 PropTypes part 2
16ProReact 进阶提高 #16 用 Render Props 代替 HOC(高阶组件)
17ProReact 进阶提高 #17 错误边界和生命周期函数 componentDidCatch
18FreeReact 进阶提高 #18 升级到 16.3
FreeReact 进阶提高 #19 探索 bind (this) 的写法
20FreeReact 进阶提高 #20 React 16.3 全新的 Context API
21ProReact 进阶提高 #21 React 16.3 全新的 Context API - 实践
22ProReact 进阶提高 #22 从 Redux 迁移到 React 16.3 的 Context API 之实践
23ProReact 进阶提高 #23 对象,数组,可变数据
24ProReact 进阶提高 #24 React.Children API 和 props.children 讲解
25ProReact 进阶提高 #25 如何使用 styled-components
26ProReact 进阶提高 #26 如何使用 styled-components(实践篇)
27ProReact 进阶提高 #27 你应该使用 redux-form(介绍)
28ProReact 进阶提高 #28 你应该使用 redux-form(实践篇)
29ProReact 进阶提高 #29 React Portals(学习方法)
30ProReact 进阶提高 #30 使用 React Portals 实现 Modal 框(part 1)
31ProReact 进阶提高 #31 使用 React Portals 实现 Modal 框(part 2)
© 汕尾市求知科技有限公司 | 关注我们 | 在线学员:1117
粤公网安备 44152102000088号 | 粤ICP备19038915号
第一个链接很赞哦,说出了目前的
bind
方式.