react-complete-guide-code icon indicating copy to clipboard operation
react-complete-guide-code copied to clipboard

react-router-dom v6 update, Switch -> Routes and useHistory -> useNavigate

Open davidchen003 opened this issue 3 years ago • 0 comments

App.js

  • In react-router-dom v6, Switch is replaced by Routes

NewMeetup.js

  • In react-router-dom v6 useHistory() is replaced by useNavigate().

davidchen003 avatar Jan 08 '22 21:01 davidchen003