import React, { Component, PropTypes } from 'react';
import { connect, observer } from 'utils';

export default class Landing extends Component {
  static propTypes = {
    language: PropTypes.string,
    setLanguage: PropTypes.func,
    helloMessage: PropTypes.string,
  }

  render() {
    const { helloMessage, setLanguage, language } = this.props;

    return (
      <div>
        <p>{helloMessage}</p>
        <button
          onClick={() => setLanguage(language === 'en' ? 'pl' : 'en')}
        >Toggle language</button>
      </div>
    );
  }
}

@@ -90,16 +90,176 @@
 tils';%0A%0A
+@observer%0A@connect((%7B userStore, uiStore %7D) =%3E (%7B%0A  language: uiStore.language,%0A  setLanguage: uiStore.setLanguage,%0A  helloMessage: userStore.helloMessage,%0A%7D))%0A
 export d

Add store connect