2017-03-20 67 views

回答

0

給路線的關鍵解決該問題:

const ChildRoutes = React.cloneElement(this.props.children, { 
      key: this.props.location.pathname, 
     })