{"size": 666, "ext": "js", "max_stars_repo_path": "src/assets/javascripts/chat-frontend/src/bundles/containers/Chat.js", "max_stars_repo_name": "jann-Briza/crystal-react-websockets", "max_stars_repo_stars_event_min_datetime": "2018-11-27T02:33:47.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-12T13:38:43.000Z", "max_issues_repo_path": "src/assets/javascripts/chat-frontend/src/bundles/containers/Chat.js", "max_issues_repo_name": "briza23/crystal-react-websockets", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/assets/javascripts/chat-frontend/src/bundles/containers/Chat.js", "max_forks_repo_name": "briza23/crystal-react-websockets", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.9655172414, "max_line_length": 62, "alphanum_fraction": 0.6471471471}
import { compose, createStore, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import React from "react";
import thunkMiddleware from "redux-thunk";
import VisibleChat from "../components/Chat";
import Chat from "../reducers/Chat";

const createBookingsStore = compose(
    applyMiddleware(thunkMiddleware)
)(createStore);

export default class ChatRoot extends React.Component {

    componentWillMount() {
        this.store = createBookingsStore(Chat, {});
    }

    render() {
        return (
            <Provider store={this.store}>
                <VisibleChat/>
            </Provider>
        );
    }
}

ChatRoot.propTypes = {
};
