react-router-dom v6으로 업데이트 되면서 변경된 부분을 알아보자
react-router-dom v6
switch -> routes exact는 사용하지 않는다 component 옵션이 element로 변경되었다
참고링크