Skip to content

Instantly share code, notes, and snippets.

Created Dec 11, 2018
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 (
<Route exact path="/" component={Home} />
<Route exact path="/commit" component={CommitList} />
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment