我正在为web请求使用axios,并为它创建了一个拦截器来显示所有错误消息的烤面包机。我使用react-intl进行翻译,拦截器中的通用错误消息被翻译,所以我将拦截器绑定到我的应用程序的生命周期: componentDidMount我的问题如下。如果我试图在调用Main.componentDidMount之前使用axios进行调用,消息将不会显示。internally
class SomeCh
在componentDidUpdate上,我想更改一个样式属性。问题,当试图获取子节点的Dom节点时,反应抛出一个错误。var childA = this.props.children[0]; => Uncaught Error: Invariant Violation: Element appears to be neither ReactComponent nor DOMNode (keys: )
编辑:^是编写