Skip to content

Commit 414b4ae

Browse files
authored
Merge pull request #2 from mecirmartin/patch-1
Check if window.__skip_render is set
2 parents 392ee1d + 0c1086b commit 414b4ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ import React from "react";
22
import ReactDOM from "react-dom";
33
import App from "./App";
44

5-
ReactDOM.render(<App />, document.getElementById("root"));
5+
if(!window.__skip_render){
6+
ReactDOM.render(<App />, document.getElementById("root"));
7+
}

0 commit comments

Comments
 (0)