React
How to create an Electron app with React and Electron Forge
Create the app and setup the Webpack config
npm install --save-dev @babel/core @babel/preset-react babel-loadermodule.exports = [
// ... existing loader config ...
{
test: /\.jsx?$/,
use: {
loader: 'babel-loader',
options: {
exclude: /node_modules/,
presets: ['@babel/preset-react']
}
}
}
// ... existing loader config ...
];Add the React dependencies
Integrate React code
Last updated
Was this helpful?