摘要:
import React from 'react'; import ReactDOM from 'react-dom'; class LoginControl extends React.Component { constructor(props) { super(props); this.handleLoginClick = this.handleLo... 阅读全文
摘要:
开关按钮制作 import React from 'react'; import ReactDOM from 'react-dom'; class Toggle extends React.Component { constructor(props) { super(props); this.sta 阅读全文
摘要:
import React from 'react'; import ReactDOM from 'react-dom'; function formatDate(date) { return date.toLocaleDateString(); } const comment = { date: new Date(), text: 'I hope you enj... 阅读全文
摘要:
1.函数试组件 2.函数试组件改成类组件 阅读全文