title: How to pass data from mapStateToProps to parent component?
body: <p>This is my component:</p>
  <pre><code>export default const NotesComponent = () =&gt; {
    return notesList.map((noteProps) =&gt; (
      &lt;NewsCard {...notesProps} key={notesProps.id} /&gt;
    ))
  }
  </code></pre>
  <p>Here is the place where i use this component:</p>
  <pre><code>const Notes = (props: NotesProps) =&gt; {
    return (
      &lt;Container&gt;
        &lt;NotesComponent /&gt;
      &lt;/Container&gt;
    )
  }
  
  const mapStateToProps = (state) =&gt; ({
    notesData: state.notes.notesData,
  })
  // and other code so mapStateToProps is working correctly
  </code></pre>
  <p>I don't know how to pass <code>notesData</code> to <code>NotesComponent</code>, so the <code>NewsCard</code> can read the data.</p>