Created
October 9, 2016 15:41
-
-
Save brookslyrette/fa136d3c036e02bf78cb23eadccb22d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Link } from 'react-router' | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import { BrowserRouter, Match } from 'react-router'; | |
| import FrontPageContainer from './containers/FrontPageContainer.js'; | |
| import SubredditPageContainer from './containers/SubredditPageContainer.js'; | |
| import DefaultRedditsContainer from './containers/DefaultRedditsContainer.js' | |
| const App = (props) => ( | |
| <BrowserRouter> | |
| <div className="App container-fluid"> | |
| <div className="App-reddit-selector"> | |
| <Link to="/">Front</Link> - <Link to="/r/all">All</Link> | | |
| <DefaultRedditsContainer /> | |
| </div> | |
| <div className="App-header"> | |
| <img src={logo} className="App-logo" alt="logo" /> | |
| <strong>Reactit!</strong> An Example ReactJs Reddit front-end | |
| </div> | |
| <Match exactly pattern="/" component={FrontPageContainer}/> | |
| <Match exactly pattern="/r/:name" component={SubredditPageContainer} /> | |
| </div> | |
| </BrowserRouter> | |
| ); | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment