#Best way to create a React App?
8 messages · Page 1 of 1 (latest)
An alternative is to create a project with CRA and then add Electron and Forge. But what problem are you struggling with?
@jolly quiver what exact behaviour are you struggling with? I'm interested in finding out!
I think I've started to get going in the right track @tough cape @fast cloud. I think as opposed to a traditional setup, having to work through the renderer + files made it a bit confusing and the docs I could find online didn't quite explain it or they used CRA. But I figured out that I just need a single file to act as the "main" react component and adding everything into that similar to a traditional app, where as before I thought i was supposed to add it all to the renderer lol..
Ah yeah, app architecture for React doesn't really change AFAIK 😄
2 quick q's I have while the thread is open are 1) Do you only have 1 renderer file for your entire app & 2) is it possible to wait for the app to load fully before injecting components so I don't need to display a "loading" html page?
- You usually have a single entry point file unless you need multiple renderer processes (e.g. overlay window, child window, etc.)
- Not that I'm aware of, but I think you would want to look in the React ecosystem for that (i.e. not really electron-specific topics)
any react components, utility functions in ur react app, etc. are technically running in the renderer process as well