Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2015 14:38
What would you like to do?
MainNavigation dumb component from the Lexi React WP theme:
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class MainNavigation extends Component {
render() {
return (
<div className="blog-masthead">
<div className="container">
<nav className="nav blog-nav">
<Link to="/" className="nav-link" activeClassName="active" onlyActiveOnIndex={true}>Home</Link>
<Link to="/2015/02/some-article" className="nav-link" activeClassName="active">Some Article</Link>
<Link to="/about" className="nav-link" activeClassName="active">About</Link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment