Skip to content

Commit

Permalink
doc: fix sample
Browse files Browse the repository at this point in the history
OKTA-349662
<<<Jenkins Check-In of Tested SHA: fce7ccf for [email protected]>>>
Artifact: okta-react
  • Loading branch information
shuowu authored and eng-prod-CI-bot-okta committed Nov 30, 2020
1 parent e246e3e commit 3a7c298
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ Install `@okta/okta-react`
npm install --save @okta/okta-react
```

Install peer dependency `@okta/okta-auth-js`
Install peer dependencies

```bash
npm install --save react
npm install --save react-dom
npm install --save react-router-dom
npm install --save @okta/okta-auth-js
```

Expand Down Expand Up @@ -151,6 +154,7 @@ export default App;
```jsx
import React from 'react';
import { SecureRoute, Security, LoginCallback } from '@okta/okta-react';
import { OktaAuth } from '@okta/okta-auth-js';
import Home from './Home';
import Protected from './Protected';

Expand Down

0 comments on commit 3a7c298

Please sign in to comment.