Skip to content

Commit

Permalink
navigate between pages
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Apr 13, 2017
1 parent b80be83 commit 91aa00b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blog/src/components/posts_index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';

class PostsIndex extends Component {
Expand All @@ -21,6 +22,11 @@ class PostsIndex extends Component {
render() {
return (
<div>
<div className="text-xs-right">
<Link className="btn btn-primary" to="/posts/new">
Add a Post
</Link>
</div>
<h3>Posts</h3>
<ul className="list-group">
{this.renderPosts()}
Expand Down

0 comments on commit 91aa00b

Please sign in to comment.