React JSX , Babel, React Components & Props Explained from Scratch | ReactJS Full Course #2
42.3K views on YouTube
Learn React the RIGHT way – no memorization, just pure understanding!
In this video, we dive deep into React fundamentals using a first-principles approach. Instead of just showing you “how” to write code, we explain “why” things work the way they do.
๐ฅ What You’ll Learn in This Video:
โ
JSX – What It Actually Is
โข JSX is NOT HTML – proof with real examples
โข Why className instead of class
โข Why style is an object, not a string
โข Self-closing tags requirement
โข JavaScript expressions inside {}
โ
Babel – The Transpiler
โข What is Babel and why we need it
โข Transpiler vs Compiler – the difference
โข How type=”text/babel” works
โข Runtime vs Build-time transformation
โ
JSX Expressions – The Complete Picture
โข What can go inside {} and WHY
โข Strings, Numbers, Arrays – what renders
โข Booleans, null, undefined – why they don’t render
โข Objects – why they throw errors
โข Functions returning JSX
โ
React Components
โข Component = Function that returns JSX
โข Why capital letter is REQUIRED (not just convention)
โข How React.createElement handles components vs DOM elements
โข Component composition – components inside components
โ
Props – Passing Data to Components
โข Props as function parameters
โข Different data types in props (string, number, boolean, array, object, function)
โข Props are read-only – why?
โข Destructuring props
โข The children prop
โ
The Complete Flow
โข JSX โ React.createElement() โ React Element (Virtual DOM) โ Real DOM
โข Who does what: Babel vs React vs ReactDOM
โข Recursive resolution of components
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Why This Tutorial Is Different:
Most tutorials tell you WHAT to do. This tutorial explains WHY.
– Why does JSX need Babel?
– Why can’t objects be rendered in JSX?
– Why do component names start with capital letters?
– Why is style an object and not a string?
If you want to truly understand React (not just copy-paste code), this video is for you.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ Who Is This For:
– Beginners starting their React journey
– Developers who know React syntax but don’t understand the “why”
– Anyone tired of memorizing rules without understanding them
– Students preparing for frontend interviews
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
#react #reactjs #jsx #babel #javascript #webdevelopment #frontend #programming #reacttutorial #reactcomponents #props #webdev #coding #frontenddevelopment #learnreact #reactforbeginners #javascripttutorial #webdeveloper #softwaredevelopment #hindi
Visit Strike: https://strikes.in/
Class start from 1 december
Visit Coder Army Website: https://coderarmy.in/#home
Course start date: 1 september
Timing: 6pm (Mon-fri)
Hackathon will be organised after course completion
Join Premium Whatsapp Group: https://whatsapp.com/channel/0029Va6H0tbHVvTbcuT99Y1f
Class Notes : https://www.notion.so/Lecture-02-JSX-Babel-props-and-React-Component-2b13a78e0e22804797a1ef605cb2d3fb?source=copy_link
Code Link: https://github.com/coderarmy-notes/mern-stack-course
Twitter: https://x.com/rohit_negi9?s=21
Channel: โช@CoderArmy9โฌ
Buy Our Premium Course of Web dev+Blockchain+HLD+DSA: https://rohittnegi.akamai.net.in/new-courses/4-web-development-block-chain (5500 only)
Time Stamp:
#javascript #webdevelopment #mernstack