title: React Redux - How to access a structured selector from a static function?
body: <p>I want to acces to state from a class. Let me try to tell with code.</p>
  
  <pre><code>import React from 'react';
  import { makeSelectTranslations } from 'containers/App/selectors.js';
  import { createStructuredSelector } from 'reselect';
  import { connect } from 'react-redux';
  
  class Translation extends React.Component {
  
      static translate(value) {
          return this.props.translations[value];
      }
  }
  
  
  Translation.propTypes = {
      dispatch: PropTypes.func.isRequired,
    };
  
    const mapStateToProps = createStructuredSelector({
      translations:makeSelectTranslations(),
    });
  
    function mapDispatchToProps(dispatch) {
      return {
        dispatch,
      };
    }
  
    export default connect(mapStateToProps, mapDispatchToProps)(Translation);
  </code></pre>
  
  <p>And I want to use this translation library like this:</p>
  
  <pre><code>import React, { PropTypes } from 'react';
  import { connect } from 'react-redux';
  import { createStructuredSelector } from 'reselect';
  import Translation from 'libraries/Translation';
  
  export class MainPage extends React.Component {
    render() {
      return (
          &lt;div&gt;{Translation.translate('hello_world')}&lt;/div&gt;
      );
    }
  }
  
  MainPage.propTypes = {
    dispatch: PropTypes.func.isRequired,
  };
  
  const mapStateToProps = createStructuredSelector({
    MainPage: makeSelectMainPage(),
  });
  
  function mapDispatchToProps(dispatch) {
    return {
      dispatch
    };
  }
  
  export default connect(mapStateToProps, mapDispatchToProps)(MainPage);
  </code></pre>
  
  <p>Here is my Selector</p>
  
  <pre><code>const selectGlobal = () =&gt; (state) =&gt; state.get('global');
  
  const makeSelectTranslations = () =&gt; createSelector(
    selectGlobal(),
    (globalState) =&gt; globalState.get('translations')
  );
  </code></pre>
  
  <p>Here is how is my translation located : 
  <img src="https://user-images.githubusercontent.com/15822986/34468645-444afef8-ef1e-11e7-84cb-4bde6f642429.png" alt="image"></p>
  
  <p>So, my aim is using Translation.translate('hello_world') every where of my project. Is this possible?</p>
  
  <p>Thanks</p>