Skip to content

Commit 7abcec6

Browse files
committed
Improvements.
1 parent a5ae1ef commit 7abcec6

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

public/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27+
<!-- Start Single Page Apps for GitHub Pages -->
2728
<script type="text/javascript">
2829
// Single Page Apps for GitHub Pages
2930
// MIT License
@@ -44,6 +45,7 @@
4445
}
4546
}(window.location))
4647
</script>
48+
<!-- End Single Page Apps for GitHub Pages -->
4749
<title>React Auth0</title>
4850
</head>
4951
<body>

src/index.tsx

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1+
import React from 'react';
12
import ReactDOM from 'react-dom';
3+
import { BrowserRouter, Route, Routes } from 'react-router-dom';
24
import { Auth0Provider } from '@auth0/auth0-react';
35
import './index.css';
46
import App from './App';
7+
import Profile from './Profile';
8+
import SignIn from './SignIn';
59
import reportWebVitals from './reportWebVitals';
610

711
ReactDOM.render(
8-
<Auth0Provider
9-
domain="dev-5tf99p7c.us.auth0.com"
10-
clientId="GBPB42qhMWCtvrwGmYxvm5cbHXU68nzG"
11-
redirectUri={window.location.origin + '/react-auth0/profile'}
12-
>
13-
<App />
14-
</Auth0Provider>,
12+
<React.StrictMode>
13+
<Auth0Provider
14+
domain="dev-5tf99p7c.us.auth0.com"
15+
clientId="GBPB42qhMWCtvrwGmYxvm5cbHXU68nzG"
16+
redirectUri={window.location.origin + '/react-auth0/profile'}
17+
>
18+
<App />
19+
</Auth0Provider>
20+
</React.StrictMode>,
1521
document.getElementById('root')
1622
);
1723

0 commit comments

Comments
 (0)