• This project
    • Loading...
  • Sign in

한우준 / Straight-Up

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Straight-Up
  • straight-up
  • src
  • App.js
  • MrMirror21's avatar
    add Landing page · 30a4f959
    30a4f959
    MrMirror21 authored 2020-12-04 20:44:05 +0900
App.js 477 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import React from 'react';
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';
import Landing from './Landing';


class App extends React.Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route exact path="/landing" component={Landing} />
                    <Redirect path="*" to="/landing" /> 
                </Switch>
            </Router>
        );
    }
}

export default App;