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()}
        </ul>
      </div>
    );
  }
// React Router prevents this by using the Link tag
React Router prevents this by using the Link tag
React Router prevents this by using the Link tag
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()}
        </ul>
      </div>
    );
  }
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 ( ) } < / ul > < / div > ) ; }
React Router prevents this by using the Link tag
React Router prevents this by using the Link tag