Hi @strasserra04,
Welcome to the Community!
You can update a user’s information with the management API patch users by id endpoint. You won’t be able to do this from your SPA, because this action requires a management API token, which are not issued to public clients like your react app. This is because they can easily be inspected and used maliciously.
Instead, you should make these kinds of changes from your backend or API. It will ct as a proxy for the request. See this FAQ about how to change a user’s email (although email is a bit more sensitive because it is part of the user’s credential, where a address or nickname might not have as much effect, but you get the point).