You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/develop/tutorial-single-page-app-react-call-api.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,15 @@ In this tutorial:
33
33
34
34
To allow the SPA to request access to Microsoft Graph, a reference to the `graphConfig` object needs to be added. This contains the Graph REST API endpoint defined in *authConfig.js* file.
35
35
36
-
1. In the *src* folder, open *graph.js* and replace the contents of the file with the following code snippet to request access to Microsoft Graph.
36
+
- In the *src* folder, open *graph.js* and replace the contents of the file with the following code snippet to request access to Microsoft Graph.
## Update imports to use components in the application
41
41
42
42
The following code snippet imports the UI components that were created previously to the application. It also imports the required components from the `@azure/msal-react` package. These components will be used to render the user interface and call the API.
43
43
44
-
1. In the *src* folder, open *App.jsx* and replace the contents of the file with the following code snippet to request access.
44
+
- In the *src* folder, open *App.jsx* and replace the contents of the file with the following code snippet to request access.
45
45
46
46
```javascript
47
47
importReact, { useState } from'react';
@@ -62,7 +62,7 @@ The following code snippet imports the UI components that were created previousl
62
62
63
63
The `ProfileContent` function is used to render the user's profile information after the user has signed in. This function will be called when the user selects the **Request Profile Information** button.
64
64
65
-
1. In the *App.jsx* file, add the following code below your imports:
65
+
- In the *App.jsx* file, add the following code below your imports:
66
66
67
67
```JavaScript
68
68
/**
@@ -104,7 +104,7 @@ The `ProfileContent` function is used to render the user's profile information a
104
104
105
105
The `MainContent` function is used to render the user's profile information after the user has signed in. This function will be called when the user selects the **Request Profile Information** button.
106
106
107
-
1. In the *App.jsx* file, replace the `App()` function with the following code:
107
+
- In the *App.jsx* file, replace the `App()` function with the following code:
0 commit comments