@vancielnugraha/

react-router-example

React

No description

fork
loading
Files
  • src
    • App.js
    • App.css
    • App.test.js
    • index.css
    • index.js
    • Login.js
    • logo.svg
    • Main.js
    • Signup.js
    • User.js
  • public
  • package.json
src/App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React, { Component } from 'react';
import './App.css';
import Main from './Main';
import {Link} from 'react-router-dom';

class App extends Component {
  render() {
    return (
      <div className="App">
      <Link to="/login" >Login</Link>
      <Link to="/signup" >Signup</Link>
      <Link to="/" >Home</Link>
        <Main />
      </div>
    );
  }
}

export default App;