4
我知道注入道具到一個組件的唯一途徑是通過像這樣如何注入React Component道具?
render() {
return <Child ...this.someProps />
}
父組件如何動態地通過像這樣
inject(someProps, Child)
功能注入更多的道具到Child
組件類似於redux-connect(mapStateToProps, mapDispatchToProps)(Child)
的工作原理