text: import React, { Component } from "react";
  import {createStore} from "redux";
  import FormContainer from "./formContainer.js";
  import ListContainer from "./listContainer.js";
  import reducer from "./reducer.js";
  import I from "immutable";
  import "normalize.css";
  
  
  class App extends Component {
    constructor(props) {
      super(props);
      this.state = {main: I.Map()};
      this.store = createStore(reducer);
      this.store.subscribe(() => {
        this.setState({
          main: this.store.getState()
        });
      });
    }
  
    render() {
      return (
        <div className="app">
          <FormContainer
            currentInput={this.state.main.get("currentInput", "")}
            dispatch={this.store.dispatch}
          />
          <ListContainer
            todoItems={this.state.main.get("todoItems", I.List())}
            dispatch={this.store.dispatch}
          />
        </div>
      );
    }
  }
  
  export default App;
  