Last active
February 11, 2017 22:35
-
-
Save iamnnort/51c4d5bbce94da1b8598a2587e164061 to your computer and use it in GitHub Desktop.
This file contains 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, { Component } from 'react' | |
import { Link } from 'react-router' | |
export default class App extends Component { | |
render() { | |
return ( | |
<div className='container'> | |
<ul> | |
<li><Link to='/' activeClassName='active' onlyActiveOnIndex={true}>Home</Link></li> | |
<li><Link to='/admin' activeClassName='active'>Admin panel</Link></li> | |
<li><Link to='/news' activeClassName='active'>News</Link></li> | |
</ul> | |
{this.props.children} | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment