Skip to content

Instantly share code, notes, and snippets.

@gotnospirit
gotnospirit / main.js
Created Jul 28, 2017
React Router v4 + React Transition Group v2
View main.js
import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter, Route, Link } from 'react-router-dom'
import { TransitionGroup, Transition } from 'react-transition-group'
import matchPath from 'react-router-dom/matchPath'
const routes = [{
key : 'home',
path : '/',
content : 'Homepage',