Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/App.js
Last active Sep 16, 2018

What would you like to do?
Navigating between Home and Watch component
import React, {Component} from 'react';
import {Home} from './containers/Home/Home';
import {AppLayout} from './components/AppLayout/AppLayout';
import {Route, Switch} from 'react-router-dom';
class App extends Component {
render() {
return (
<Route path="/watch" component={Watch}/>
<Route path="/" component={Home}/>
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.