Skip to content

Commit

Permalink
Merge pull request #3326 from AzureAD/tnorling-patch-1
Browse files Browse the repository at this point in the history
Fix syntax error in react docs
  • Loading branch information
tnorling committed Mar 31, 2021
2 parents f9aa595 + 4418f4b commit 0b34c58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix syntax in docs #3326",
"packageName": "@azure/msal-react",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "none"
}
2 changes: 1 addition & 1 deletion lib/msal-react/docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function App() {
The `useMsal` hook returns the context. This can be used if you need access to the `PublicClientApplication` instance, the list of accounts currently signed in or if you need to know whether a login or other interaction is currently in progress.

```javascript
const [instance, accounts, inProgress] = useMsal();
const { instance, accounts, inProgress } = useMsal();
let accessToken = null;
useEffect(() => {
if (inProgress === "none" && accounts.length > 0) {
Expand Down

0 comments on commit 0b34c58

Please sign in to comment.