class DetailPage extends Component{
constructor(props){
super(props);
dispatch = dispatch.bind(this)
}
componentDidUpdate(){
dispatch(action(data))
}
render(){
const { dispatch } = this.props;
return(
<div>
{this.props.params.id}
</div>
)
}
}
구성 요소가 라우터의 매개 변수를 업데이트 할 때 작업을 전달하려고합니다.이 역에서 redux에서 파견을 사용하는 방법?
발송하는 방법은 기능입니까?
질문을 편집하여 스크린 샷을 추가하는 대신 텍스트로 포함 시키십시오. –