摘要:
import React, { PureComponent } from 'react' // class LoginPage extends PureComponent { render() { return ( <div> <h2>LoginPage</h2> </div> ) } } func 阅读全文
posted @ 2021-08-12 17:46
13522679763-任国强
阅读(85)
评论(0)
推荐(0)
摘要:
import React, { PureComponent, createContext } from 'react' import { render } from 'react-dom' // 定义一个高阶组件 function withUser(WrappedComponent){ return 阅读全文
posted @ 2021-08-12 17:20
13522679763-任国强
阅读(64)
评论(0)
推荐(0)
摘要:
import React, { PureComponent } from 'react' // 定义一个高阶组件 function enhanceRegionProps(WrappedComponent){ return props => { return <WrappedComponent {.. 阅读全文
posted @ 2021-08-12 17:19
13522679763-任国强
阅读(33)
评论(0)
推荐(0)
摘要:
import React, { PureComponent,createRef } from 'react' export default class App extends PureComponent { constructor(props){ super(props) this.username 阅读全文
posted @ 2021-08-12 15:13
13522679763-任国强
阅读(31)
评论(0)
推荐(0)
摘要:
import React, { PureComponent } from 'react' export default class App extends PureComponent { constructor(props){ super(props) this.state = { username 阅读全文
posted @ 2021-08-12 15:06
13522679763-任国强
阅读(101)
评论(0)
推荐(0)
摘要:
import React, { PureComponent,createRef } from 'react' class Counter extends PureComponent { constructor(props){ super(props) this.state = { counter:0 阅读全文
posted @ 2021-08-12 14:15
13522679763-任国强
阅读(96)
评论(0)
推荐(0)
摘要:
import React, { PureComponent } from 'react' import {EventEmitter} from 'events'; // yarn add events // 事件总线 event bus const eventBus = new EventEmitt 阅读全文
posted @ 2021-08-12 11:54
13522679763-任国强
阅读(85)
评论(0)
推荐(0)
摘要:
import React, { PureComponent } from 'react' export default class App extends PureComponent { constructor(props){ super(props) this.state = { friends: 阅读全文
posted @ 2021-08-12 10:54
13522679763-任国强
阅读(53)
评论(0)
推荐(0)

浙公网安备 33010602011771号