Skip to content

Instantly share code, notes, and snippets.

@haruelrovix

haruelrovix/App.js

Created Dec 11, 2018
Embed
What would you like to do?
RNE x RNW: Add second component and Routing
import React, { Component } from 'react';
import Home from './Components/Home';
import CommitList from './Components/Commit/CommitList';
import { Route, Router, Switch } from './Utils/Routing';
class App extends Component {
render() {
return (
<Router>
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/commit" component={CommitList} />
</Switch>
</Router>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.