The only way I know to embed the details in a component is through a parent component such as
render() {
return <Child ...this.someProps />
}
How can I add additional details to a component Childdynamically using such a function
inject(someProps, Child)
Similar to how the reduction-response effect works connect(mapStateToProps, mapDispatchToProps)(Child)
source
share