()
| 29 | }; |
| 30 | |
| 31 | function cleanUp() { |
| 32 | let done = false; |
| 33 | if (!done) { |
| 34 | // Remove the pre-rendered CSS because it's no longer used |
| 35 | // after the React app is launched |
| 36 | const css = document.getElementById('css'); |
| 37 | if (css) { |
| 38 | css.parentNode.removeChild(css); |
| 39 | done = true; |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function render(state) { |
| 45 | Router.dispatch(state, (_, component) => { |