Socket
Book a DemoInstallSign in
Socket

react-electronic

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-electronic

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

React Electron

Declarative way to manage windows in an Electron application with React.

Work In Progress - This is currently a quick-and-dirty prototype.

Install

yarn add react-electronic

Usage

import React from 'react'
import { App, BrowserWindow, createWindowContainer } from 'react-electronic'

const container = createWindowsContainer()

render(
  <App>
    {
      state.notes.map(note =>
        <BrowserWindow
          key={note.id}
          url='https://github.com'
          vibrancy='dark'
          height={640}
          width={480}
          autoHideMenuBar={true}
          titleBarStyle='hidden-inset'
          onClose={() => store.dispatch(
            closeNote(note.id)
          )}
        />
      )
    }
  </App>,
  container
)

FAQs

Package last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts