import React from 'react';

class PostsIndex extends React.Component {
  render() {
    return (
      <div className='posts-index'>
        Posts Index
      </div>
    )
  }
}

export default PostsIndex;

@@ -24,51 +24,190 @@
 t';%0A
-%0Aclass PostsIndex extends React.Component %7B
+import %7B connect %7D from 'react-redux';%0Aimport %7B fetchPosts %7D from '../actions';%0A%0A%0Aclass PostsIndex extends React.Component %7B%0A  componentDidMount() %7B%0A    this.props.fetchPosts();%0A  %7D%0A
 %0A  r
@@ -326,16 +326,58 @@
 default 
+connect(null, %7B fetchPosts: fetchPosts %7D)(
 PostsInd
@@ -378,10 +378,11 @@
 stsIndex
+)
 ;%0A

Call fetchPosts when PostsIndex components mounts