react-complete-guide-code
react-complete-guide-code copied to clipboard
react-router-dom v6 update, Switch -> Routes and useHistory -> useNavigate
App.js
- In react-router-dom v6, Switch is replaced by Routes
NewMeetup.js
- In react-router-dom v6 useHistory() is replaced by useNavigate().