React
How to create an Electron app with React and Electron Forge
Last updated
Was this helpful?
How to create an Electron app with React and Electron Forge
Last updated
Was this helpful?
Adding React support to the Webpack template doesn't require a complicated boilerplate to get started.
Create the app with the . Add the following packages to your devDependencies
so that JSX and other React features can be used properly:
Set up the module with the in webpack.rules.js
:
Add the basic React packages to your dependencies
:
You should now be able to start writing and using React components in your Electron app. The following is a very minimal example of how to start to add React code:
For more about React, see their .