background preloader

Electron

Facebook Twitter

GitHub - chentsulin/electron-react-boilerplate: Live editing development on desktop app. A JavaScript library for building user interfaces. A Simple Component React components implement a render() method that takes input data and returns what to display.

A JavaScript library for building user interfaces

This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by render() via this.props. JSX is optional and not required to use React. Try clicking on "Compiled JS" to see the raw JavaScript code produced by the JSX compiler. Live JSX Editor Compiled JS A Stateful Component In addition to taking input data (accessed via this.props), a component can maintain internal state data (accessed via this.state). An Application Using props and state, we can put together a small Todo application. A Component Using External Plugins React is flexible and provides hooks that allow you to interface with other libraries and frameworks.

Input Type some *markdown* here! Output. Building Desktop Apps With Electron, Webpack and Redux - Red Badger. In March 2016, as a part my annual training budget – a perk that every badger gets – I had the opportunity to go all the way to the Fluent Conf, which was in sunny San Francisco.

Building Desktop Apps With Electron, Webpack and Redux - Red Badger

You can read the best bits from the conference in Alex's blog. One of the workshops I attended was about building a basic desktop application with Electron, that’d be compiled for every major OS and I’d like to share the knowledge and the takeaways I grasped during a 3 hour long session. What we’ll be building To highlight some of the things that a desktop application excels in from a normal web app, we’ll need to build something using the native features.

Electron provides many APIs above the native functionality and I’ve decided to build a simple HackerNews app or a watcher, that’ll let me know when there is a popular post (>= XXX votes), because I don’t want to miss those and it’s quite reasonable size of a project for this purpose. Main Process Renderer Process main.js index.html <! The setup server.js package.json. React UI Components for OS X El Capitan and Windows 10. Building Native Desktop Apps with Web Tech — JUXT. Building Native Desktop Apps with Web Tech Oct. 26, 2015 • Marcus Stenbeck Creating desktop applications with web technologies has always been a little dream of mine.

Building Native Desktop Apps with Web Tech — JUXT

With GitHub's Electron project, it's now easier than ever. Even so, there are a few gotchas along the way. In this write-up I go through some of the lessons I learned in a recent project. What you'll learn: Create a basic Electron app with React.Set up a live-reloading dev server with Webpack.Add in Sass and have Webpack process it.Package, code sign and distribute your app. Getting Started We'll be starting off with the example app provided in the Electron Quick Start guide. Save it as main.js in your project directory. <! Now we have the two files we need to run our minimal app; main.js creates the Electron app that serves index.html as its view. Run npm install. I like convenience, and in the above there's a tiny bit of inconvenience. Now, chuck your memory to the side, and start the app with npm run start. Adding React <! <! Electron - Build cross platform desktop apps with JavaScript, HTML, and CSS.

GitHub - sindresorhus/awesome-electron: Useful resources for creating apps with Electron. Creating Desktop Apps with Electron. Cross-Platform Desktop Apps with Electron w/ David Neal. Rapid cross platform desktop app development using JavaScript and Electron by Gabriel Fortuna. Photon.