EditProfile component

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 ...

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.