MCPcopy
hub / github.com/kriasoft/react-starter-kit / cleanUp

Function cleanUp

src/app.js:31–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29};
30
31function 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
44function render(state) {
45 Router.dispatch(state, (_, component) => {

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected