Django-React-NotesApp icon indicating copy to clipboard operation
Django-React-NotesApp copied to clipboard

History and match replacement in v6 react-router-dom

Open adamsheeraz4 opened this issue 1 year ago • 0 comments

get rid of arguments in Notepage().

then get noteId via: let noteId = useParams().id;

history is replaced by useNaviagte. So use let navigate = useNavigate();

Change history.push('') to navigate ('').

Don't forget to import these two from react-router-dom

adamsheeraz4 avatar Oct 22 '23 10:10 adamsheeraz4