Commit ead05b18 authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'deni-dev(pc)' into 'master'

path

See merge request !6
parents 0e6431c7 051c6950
import React from 'react'; import React, { Component } from 'react';
function Login() { class Login extends Component {
render() {
return ( return (
<div> <div> textInComponent </div>
<h2>Login</h2>
</div>
); );
}
} }
export default Login; export default Login;
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