【发布时间】:2019-03-02 11:23:07
【问题描述】:
如何在下面的函数中使用生命周期方法,例如 ComponentDidMount?
var React = require('react');
module.exports = function SectionalSquareComponent(props) {
return (
<div .....
【问题讨论】:
-
生命周期是组件/类的一部分,而不是功能组件
标签: reactjs