r/learnjavascript • u/portexe • Dec 07 '19
How a React App Works Under the Hood
https://www.youtube.com/watch?v=TjnyFNxQ67Y7
u/portexe Dec 07 '19
Lots of stuff gone over here.
Webpack
Babel
NPM
Node
React
JSX
etc
If there's anything I left out, or if you have any questions feel free to ask me here!
7
u/Nikandro Dec 07 '19
Yes, you left out how eslint always finds a way to fuck with me when I use react. It's uncanny.
1
u/portexe Dec 08 '19
You ever use TypeScript?
1
u/Nikandro Dec 08 '19
No, not really. How do you like it?
2
u/portexe Dec 08 '19
Because of the types, it gives you more detailed info as to why your lint fails. But the rules are far more strict by default. Has pros and cons, but I enjoy it.
1
u/Time_Terminal Dec 08 '19
Can you share what the cons are?
Great video btw!
1
u/portexe Dec 08 '19
Slight learning curve. Can sometimes lead to confusion if you’re used to static typed languages like C# or Java. General frustration when having to go out of your way to create types when you just want to write the code.
Small things.
1
2
u/rush336 Dec 08 '19
I have a lot of questions. I new so bear with me. Is everything created in the app function? All the css and html?
2
u/portexe Dec 08 '19
It’s okay to be new!
Babel is what converts your JSX code to the createElement function which handles updating the browser with your elements and tying the elements to your JavaScript. You can actually write css normally like you would in a normal app and just use classes on your JSX elements. But with JSX you use className=“” instead of class=“”.
If you’re super new, don’t worry about fully understanding all this. It’s just good to keep this all in the back of your mind so that as you learn React, you’ll understand what does what and how it all comes together.
1
u/crystal13dsouza Dec 08 '19
Hi, I loved your video, I have worked on React for 2+ years but this really strengthens by base. Thanks for making. I'm current looking for intermediate level of understanding concepts for node js and vanilla javascript. Can anyone point me in the right direction?
3
u/portexe Dec 08 '19
I have some intermediate tutorials on my channel. But i highly recommend Eloquent JavaScript if you haven’t read it. That may be what you are looking for.
3
u/Zeeesty Dec 08 '19
I appreciate someone who takes their audio seriously. been considering the nt-1, the mount alone is amazing.
0
6
u/Heisenripbauer Dec 07 '19
I really like the idea of looking under the hood and learning what's doing what. you broke it down nicely and explained it well. subscribed