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 {
render() {
return (
<div>
<h2>Login</h2>
</div>
<div> textInComponent </div>
);
}
}
export default Login;
import React from 'react';
function Register() {
import React, { Component } from 'react';
class Register extends Component {
render() {
return (
<div>
<h2>Register</h2>
</div>
<div> textInComponent </div>
);
}
}
export default Register;
\ No newline at end of file
......@@ -46,15 +46,11 @@ export default function BasicExample() {
of them to render at a time
*/}
<Switch>
<Route exact path="/">
<Login />
</Route>
<Route exact path="/" exact component={Login} />
{/* <Route path="*">
<NoMatch />
</Route> */}
<Route path="/register">
<Register />
</Route>
<Route path="/register" exact component={Register}/>
<Home>
<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