Need Help Setting State within API callback in React Project

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

I'm fairly new to React, so I'm still learning how to bind elements and when and where I can set the state. I think for an experience React developer, this task can be completed in under an hour. Please look at the attached screenshot to see you know how to set the state properly after the API callback.

More details:

I am trying to configure authentication in a React app using Microsoft Azure Active Director B2C. I'm using the [url removed, login to view] library to make the API call. I'm able to login and receive an authentication token and save it to local storage. I would like to set the state from within the API callback where the authentication token is returned. I am open to setting the state another way, but it seems like this approach will work if I set the state properly.

I've attached a screenshot that shows the configuration. The app is stored on bitbucket. If you are awarded the job, I can you to the repo or share the project on dropbox.

Thank you for bidding.

Azure JavaScript Node.js React.js

ID Проекту: #16088511

Про проект

2 заявок(-ки) Дистанційний проект Остання активність 6 роки(ів) тому

Доручено:

visiontocode

Hello dear, dont waste time. Let come its very simple task. Let me have a chance. I will do it very quickly. thanks.

$25 USD за 1 день
(2 відгуків(-и))
1.9

2 фрілансерів(-и) готові виконати цю роботу у середньому за $25

Amazigh1989

Hello, Can we dicuss more. one small remarque, why you don't .catch() to handle errors?. feel free to contact me at an time.

$25 USD за 1 день
(0 відгуків(и))
0.0