import React from 'react'; import ReactDOM from 'react-dom'; import { bsod } from './actions'; import BSoD from 'app/components/ui/bsod/BSoD'; let injectedStore; let onBsod; export default function dispatchBsod(store = injectedStore) { store.dispatch(bsod()); onBsod && onBsod(); ReactDOM.render(, document.getElementById('app')); } export function inject(store, stopLoading) { injectedStore = store; onBsod = stopLoading; }