#Rendering React: Without Webpack & Templates
26 messages · Page 1 of 1 (latest)
You can use Vite
Is there no way to just to do it with Electron + Typescript + React instead of adding other stuff don't wanna be using multiple frameworks
You can't use React if you don't use a bundler
Either learn webpack or vite. Or use a template/framework
Well it took this long to know this niceeeeee.
So I'm going to have to use the preload to load react?
No
Alright then just follow the other instructions you gave me. I have no clue how vite they are confusing.
you can search for tutorials
if you find vite/webpack config too complicated and you don't have the patience to learn and read the docs then use a template
If only vite didn't make it so hard to find one example of what I need to do.
All the examples are just videos of them using templates nothing from scratch..
What's so complicated?
Welcome to web development.
pick one:
- i want to learn react without the need to setup complicated configurations. It should work out of the box -> choose a react boilerplate like create-react-app or any of the others. react docs list some.
- i want to setup everything on my own -> read the docs (not just google blogs) for all those frameworks like webpack, typescript, babel, react and whatever you wanna use. Dont expect that to be easy.
btw. if you read blogs and googled tutorials about webpack or react, you are wasting your time. The react docs and webpack docs are really good and easy to understand for beginners and better than what you find from third party authors.
and completely skip the electron part for now. electron will add another level of complexity on top of that.
yeah I'd rather not.
lmao pre-made index and stuff
either way I'd delete all the src files and redo it and even then I would most likely have to edit the config anyway.
I don't understand what you expect. You don't want to use a template and yet you keep complaining that you get errors or that it's too complicated to config everything yourself...
Yeah, because people say look at the documentation thats not all self-explanatory. Not for everybody, anyways I'm looking over it and see if that fixes the problem. All I've been getting are responses either saying use a template or stuff that doesn't even relate to the issue.
If anybody needs to setup a vite.config.js file. Here is a direct like for build production. https://vitejs.dev/guide/build.html
The official react docs recommand to use a framework, if you don't want to listen to the advice then be ready to deal with errors