DEV Community

David Hwang
David Hwang

Posted on

5/12 TIL: history obj & withRouter

  • react-router-dom's <Link> vs. react-router-bootstrap's <LinkContainer>
    • the only difference is that <LinkContainer> allows us to wrap around bootstrap components
  • i can access history's object properties using withRouter
  • Higher-Order Component (HOC)
    • a function that takes a component and returns a new one

Discussion (0)