Commit 051c6950 authored by Deni Rinaldi's avatar Deni Rinaldi

path

parent 0e3068a1
import React from 'react'; import React, { Component } from 'react';
function Login() { class Login extends Component {
return ( render() {
<div> return (
<h2>Login</h2> <div> textInComponent </div>
</div> );
); }
} }
export default Login; export default Login;
\ No newline at end of file
import React from 'react'; import React, { Component } from 'react';
function Register() { class Register extends Component {
render() {
return ( return (
<div> <div> textInComponent </div>
<h2>Register</h2> );
</div> }
);
} }
export default Register; export default Register;
\ No newline at end of file
...@@ -46,15 +46,11 @@ export default function BasicExample() { ...@@ -46,15 +46,11 @@ export default function BasicExample() {
of them to render at a time of them to render at a time
*/} */}
<Switch> <Switch>
<Route exact path="/"> <Route exact path="/" exact component={Login} />
<Login />
</Route>
{/* <Route path="*"> {/* <Route path="*">
<NoMatch /> <NoMatch />
</Route> */} </Route> */}
<Route path="/register"> <Route path="/register" exact component={Register}/>
<Register />
</Route>
<Home> <Home>
<Route path="/home" exact component={Beranda} /> <Route path="/home" exact component={Beranda} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment