We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 376d302 commit 3f513abCopy full SHA for 3f513ab
src/App.js
@@ -1,12 +1,16 @@
1
import React from 'react';
2
import './App.css';
3
-import { BrowserRouter as Router } from 'react-router-dom';
+import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
4
import Home from './pages';
5
+import SigninPage from './pages/signin';
6
7
function App() {
8
return (
9
<Router>
- <Home />
10
+ <Switch>
11
+ <Route path='/' component={Home} exact />
12
+ <Route path='/signin' component={SigninPage} exact />
13
+ </Switch>
14
</Router>
15
);
16
}
src/pages/signin.js
@@ -0,0 +1,11 @@
+import React from 'react';
+
+const SigninPage = () => {
+ return (
+ <div>
+ <h1>Signin page</h1>
+ </div>
+ );
+};
+export default SigninPage;
0 commit comments