Access redux without react
<p>I want access to the store (to the dispatch and observe) without the usage of React Components. I've been looking for a couple of hours, with no result.</p>

<p>This is the case. I've created the store in the App root:</p>

<pre><code>import { Provider } from 'react-redux'
import createStore  from './state/store';

let store = createStore();

ReactDOM.render( 
  &lt;Provider store={store}&gt;
    &lt;App&gt;
  &lt;/Provider&gt;, 
  document.getElementById('root')
);
</code></pre>

<p>I'm happy using the <code>connect</code> function offered from <code>react-redux</code> when I need to add actions or listen to state changes in a component, but when I want to set some logics outside the component (mainly dispatch) i get stuck. </p>

<p>In short, I want to validate one field. I want to make a <code>validation.js</code> file where I can listen for changes from the store, run the validation logics, and then dispatch an action with the eventual error. </p>

<p>As far as the store, it is not global and I'm not using a React Component. Which is the way to get the store to listen for changes and to dispatch actions?</p>

<p>Thanks in advance.</p>