最佳答案
我查看了 Facebook 的文档 at (反应,成分) ,其中提到了如何在客户机/服务器上调用 componentWillMount
,而仅在客户机上调用 componentDidMount
。componentWillMount
对服务器做什么?