Getting Object values from React/Flux store
<p>I have a object in the AppStore and doing console.log shows the values I need are available in there.</p>

<p>In componentDidMount() I have assigned the store to a const:</p>

<pre><code>const appStoreState = AppStore.getState()
</code></pre>

<p>But how do I access the values? I tried:</p>

<pre><code>appStoreState.keyName
</code></pre>

<p>but it returns as undefined. I also tried:</p>

<pre><code>appStoreState.get('keyName')
</code></pre>

<p>based on docs here (<a href="https://facebook.github.io/flux/docs/flux-utils.html" rel="nofollow">https://facebook.github.io/flux/docs/flux-utils.html</a>) but that errors telling me that get is not a function of the const.</p>

<p>What is the correct syntax to use the value?</p>

<p>Thanks in advance,</p>

<p>Tony.</p>