Need Help Setting State within API callback in React Project

Fullført Lagt ut 6 år siden Betales ved levering
Fullført Betales ved levering

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

Prosjekt-ID: #16088511

Om prosjektet

2 bud Eksternt prosjekt Aktiv 6 år siden

Tildelt til:

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 på 1 dag
(2 omtaler)
1.9

2 frilansere byr i gjennomsnitt $25 for denne jobben

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 på 1 dag
(0 Omtaler)
0.0