May 2018
Intermediate to advanced
470 pages
13h 54m
English
The EditProfile component in client/user/EditProfile.js has similarities in implementation with both the Signup and Profile components. It will allow the authorized user to edit their own profile information in a form similar to the sign up form:

Upon load at '/user/edit/:userId', the component will fetch the user's information with ID after verifying JWT for auth, then load the form with the received user information. The form will allow the user to edit and submit only the changed information to the update fetch call, and on successful update, redirect the user to the Profile view with updated information.
EditProfile ...
Read now
Unlock full access