Open zwonlala opened 2 years ago
위 두개의 차이점에 대해 검색하다가 아래 링크를 찾게됨
stackoverflow "react-router vs react-router-dom, when to use one or the other?"
정리하면
react-router
react-router-dom
, react-router-native
을 모두 포함하는 것react-router-dom
, react-router-native
을 모두 포함하는 것
react-router-dom
, react-router-native
을 모두 포함하는 것
Error
"Type '{ exact: true; path: string; component: () => ReactElement<any, string | JSXElementConstructor// old - v5 <Route exact path="/" component={Home} />
// new - v6 <Route path="/" element={<Home />} />
관련 참조할 글