#react
1 messages · Page 1 of 1 (latest)
joined
usually we create threads when the convo gets long
smart
anyways, dw much on how things work behind the scenes for now
just build and you'll eventually understand things
to create a react components there are some rules u should follow
u speeding things up a bit so that's why u won't understand everything
but it's fine ur goal is to build ur personal website
not for working
indeed
i dont get how i have 2 of all my files
i swear i followed the guide but i have the .js and .tsx
look show me the page.js
2nd one is .tsx
lol thats my site if ya wanna check it out
dunno if i just doxxed myself or something
nah
u didn't lol
anyways so the page.js was probably an option to add
maybe he was saying u can add this or .tsx
doesn't matter
pick whatever
but u don't know typescript so
correct, all the examples on next.js are in typescript tho
i assume it is not the same as javascript?
ye
it's a superset of javascript
like JavaScript
but with extra things
in the nextjs docs u can switch to js and check stuff tho
so do the .js files stay or get renamed .jsx
but look if u just wanna build sth simple, u don't really have to learn everything
just hire someone ig
or use a template
renaming is better
i mean the site is to learn to code, not made out of necessity. sometimes when i ask chatgpt questions about my html and i do all of its suggestions it just recommends using something like react
and then react recommends using a framework
after i learn react
oh u wanna learn how to code?
then start slow
learn react first
then move to nextjs
another problem i had was i don't understand how to add react to an existing html project
i gotta figure out how to get to my 1 folder but i can show you my code if that'll help
im more confident with that stuf
like where would i even begin
test and testes are basically nonexistent
u can't add react to an existing html project
no no no
u create a react project
an empty one
and start building similarly
would you be willing to walk me through the process of creating a react project real quick then? you saw how bad my file structure was last night
didn't even know i could make a 2 smh
yep
npm create vite@latest .
react is the framework right
not vanilla?
i hit react
should i do javascript or jacvascript +swc
js
so react is a framework of js, and next.js is a framework of react?
react is a library
it can be considered a framework
but it not really is
Nextjs is built on top of react
so like when i run it in localhost it has a vite + react page made up
what all do i delete to have a blank slate but it still work
yes
just delete what's inside the div
and now learn react normally
search on YouTube react course
not tutorial
also some ppl might use create-react-app to install react
I don't recommend it
it's really slow
and bad
i see
are there any generally recommended youtubers? i don't wanna get the jake paul of coding
haha lmao
hmm
lemme check someone I know
well a react course should be no less than 4 hours tbh
u can't really be react dev in 1 hour or 30 min
thats fine
i have all my life
that's why i've been going by the developers guides instead of youtube
good luck man
thank you, i appreciate all the help