<Route path="/topics/:topicId" component={TopicContainer} />TopicContainer是一個容器組件,如果這里的component是一個展示組件的話我可以通過this.props.params.topicId拿到這個topicId參數,怎么讓這個容器組件的展示組件拿到這個參數呢?
react-router給容器組件傳遞參數,怎么讓展示組件拿到這個參數
當年話下
2018-10-10 13:10:56