title: How to access store in second component in react-redux
body: <p>I have a single component <code>App.js</code> where I trying to save state using <code>redux</code>. In index.js where I set store for only <code>&lt;App /&gt;</code> component.</p>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>let store = createStore(scoreReducer);
  
  ReactDOM.render(
    &lt;Provider store={store}&gt;&lt;App /&gt;&lt;/Provider&gt;,
    document.getElementById("root")
  );
  registerServiceWorker();
  </code></pre>
  
  <p>I have this method in <code>App.js</code> to map state to props which is available inside <code>App.js</code>.</p>
  
  <p><strong>App.js</strong></p>
  
  <pre><code>function mapStateToProps(state) {
    return { score: state.score, status: state.status };
  }
  </code></pre>
  
  <p>Everything is well so far, now I am not sure how to access <code>{ this.props.score}</code> in another component ?</p>
  
  <p>What changes I need to do in <code>index.js</code> and second component if I want to access <code>{this.props.score}</code> in another component ?</p>