Skip to content

Commit

Permalink
added link tag
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Jan 24, 2016
1 parent 37e2b6d commit d7cde3c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion blog/src/components/posts_index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';

class PostsIndex extends Component {
componentWillMount() {
Expand All @@ -9,7 +10,14 @@ class PostsIndex extends Component {

render() {
return (
<div>List of blog posts</div>
<div>
<div className="text-xs-right">
<Link to="/posts/new" className="btn btn-primary">
Add a Post
</Link>
</div>
List of blog posts
</div>
);
}
}
Expand Down

0 comments on commit d7cde3c

Please sign in to comment.