#Rendering React: Without Webpack & Templates

26 messages · Page 1 of 1 (latest)

fleet bough
#

I'm still learning how I can render react without using webpack and or creating some react app through GitHub.

flint ledge
#

You can use Vite

fleet bough
#

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

flint ledge
#

You can't use React if you don't use a bundler

#

Either learn webpack or vite. Or use a template/framework

fleet bough
#

Well it took this long to know this niceeeeee.

fleet bough
flint ledge
#

No

fleet bough
#

Alright then just follow the other instructions you gave me. I have no clue how vite they are confusing.

flint ledge
#

you can search for tutorials

fleet bough
#

Half the tutorials use a dam template

#

or outdated

flint ledge
#

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

fleet bough
#

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..

flint ledge
fleet bough
#

vite build causes this issue. I created the config as it says in the react-ts

foggy raft
#

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.

fleet bough
#

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.

flint ledge
#

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...

fleet bough
flint ledge
#

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