![Cover image for Electron with React: The Ultimate guide to create cross platform desktop apps easily](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h45z0uonlnyt6990f5q.png)
Welcome to this comprehensive guide where we will embark on a journey to master the art of setting up Electron and React using Electron Forge 6 and...
For further actions, you may consider blocking this person and/or reporting abuse
The
yarn create electron-app <app-name>
command fails on windows if your user directory has a space in it. My%USERPROFILE%
isC:\Users\Nathan Fiscaletti
. Due to this, I get this error:Yes, this error still persists with Yarn. Though npm works well here.
Thanks for the article, exactly the explanation I was looking for.
Great job
PS: import App from "./app.jsx"; must mean import App from "./App.jsx";
hello please mine showed up empty
The article is updated. You can try now.
Nice article. I've been thinking of working with ElectronJS
Will definitely try it out
hello please you left out a step
you have to import the index.js in the render.js
Yes, Sorry for this. I have updated the article. Thankyou.
helpful article thank you but do you have any idea if someone is using nextjs then which file can act as a main file (like in react you are using index.js).
Not sure. I have to try that. Never used NextJs with Electron. Also I guess no need to. Major benefit of using NextJs is optimizing load time. Since your application is gonna serve locally. No need.
Good job.
mine also shows empty
Yes, sorry for this. I actually forgot to import the
index.js
file inside the renderer. I have updated the article now. Thankyou.Hello and thanks for the article. How can i build this app? Do i just install and run electron builder?