Why does my store.getState(); is undefined ? (react/redux)
<p>I'm learning how to use state with react/redux. From what I've read I kind of understand that state is accessible "everywhere" when using Redux. I've build an example <a href="https://jsbin.com/citehi/edit?html,console,output" rel="nofollow">here</a>. In this example when I'm looking at my react/redux dev tools, state and props seems to be perfectly well defined. From this example I can access the store with : <code>$r.store.getState().TheStateIwantFromMyStore;</code>.</p>

<p>However when I'm trying to display my state result inside my component with something like this <code>&lt;p&gt;{store.getState().TheStateIwantFromMyStore}&lt;p&gt;</code> I've got the following error <code>"store is not defined"</code>. </p>

<p>Why is that ? What should I do to display the result of my store ? </p>

<p>Thanks.</p>

<p>P.S : JS bin edited. It's working fine. thanks you all.</p>