Skip to content

Commit

Permalink
Remove unnecessary render function
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnei committed Sep 20, 2023
1 parent efde57f commit 1079503
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ const initialize = Promise.race([
sleep(300),
]);

const render = (body: JSX.Element) => {
root.render(body);
};

initialize.then(

() => {
Expand All @@ -49,7 +45,7 @@ initialize.then(
},

// This error case is vey unlikely to occur.
e => render(<p>
e => root.render(<p>
{`Fatal error while loading app: ${e.message}`}
<br />
This might be caused by a incorrect configuration by the system administrator.
Expand Down

0 comments on commit 1079503

Please sign in to comment.