Skip to content

Instantly share code, notes, and snippets.

@thatisuday
Created January 5, 2021 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatisuday/62e74921ab1dc33f93e9bb0250d3d09a to your computer and use it in GitHub Desktop.
Save thatisuday/62e74921ab1dc33f93e9bb0250d3d09a to your computer and use it in GitHub Desktop.
electron-webpack renderer entrypoint.
import React from 'react';
import ReactDOM from 'react-dom';
// import entry component
import Entry from './entry';
// render `Entry` component
ReactDOM.render(
<Entry name='React'/>,
document.getElementById( 'app' ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment