Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Path 3: Local Resources
<!doctype html>
<meta charset="utf-8">
<title>Desktop App</title>
<link rel="stylesheet" href="path/to/your/stylesheet.css">
<script src="renderer.js"></script>
const mainWindow = new BrowserWindow({
width: 800,
height: 800
const {remote} = require('electron');
const {Component} = require('react');
const {Header, Sidebar} = require('@remote-web-app/ui');
const desktopInterop = {
setBadgeCount(count) {
class DesktopApp extends Component {
render() {
return (
<Header desktopInterop={desktopInterop} />
<Sidebar desktopInterop={desktopInterop} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment