리덕스 라우터

홍영란·2020년 4월 6일
0
// Redux store

location: {
  type: "STUDY",
    prevPath: {
      type: "CARD"
    }
  ...
}
  
scenes = {
  STUDY: <STUDY />
}
render() {
  return (
    {this.scenes[location.type]}
  )
}
<Link to={{ type: "STUDY" }} ... >Study</Link>
profile
JavaScript를 공부하고 있습니다:)

0개의 댓글