This week has been a big milestone in my React learning journey.
When I wrote my very first line of JSX, I honestly didnβt fully understand how all the pieces fit together. But step by step β with every small example, error, and βAha!β moment β things started to make sense.
Hereβs how my week unfolded π
π§© Day 1: Discovering Components
When I first heard the word βcomponents,β it sounded a bit technical. But once I understood it, everything became clearer.
I realized components are just like Lego blocks π§± β small, reusable pieces that can be combined to build anything.
Each component in React carries its own data, logic, and appearance, making the UI more organized.
This modular way of building feels much cleaner than writing everything in one giant file.
β Lesson learned: Break your UI into small, reusable components β it makes development faster and cleaner.
πΌοΈ Day 2: Meeting JSX
On the second day, I met my new friend β JSX.
JSX is like a magic translator between what I write and what the user sees.
At first, it felt strange to mix HTML, CSS, and JavaScript together. But then I realized β JSX makes it easy to visualize the UI as code.
Example of my first JSX:
function Welcome() {
return <h1>Hello, World!</h1>;
}
β Lesson learned: JSX isnβt just HTML. Itβs JavaScript with superpowers β¨
π¬ Day 3: Passing Data with Props
By Day 3, I faced my next challenge β how do I send information from one component to another?
Thatβs where props came in.
Props felt like passing a message between components. Instead of hardcoding everything, I could just pass data and make my components flexible and reusable.
function Welcome(props) {
return <h1>Hello, {props.name}!</h1>;
}
β Lesson learned: Props make components dynamic. One component, many possibilities.
π₯οΈ Day 4: Understanding Rendering
This day was all about seeing the results.
I learned that rendering is what brings JSX to life β turning code into something users can actually see and interact with.
And the best part? I donβt have to reload the page every time something changes. React handles that for me.
β Lesson learned: Rendering is the heartbeat of a React app π
π Day 5: Making the UI Smarter with Conditional Rendering
By Day 5, I was ready to make my UI smarter.
I learned about conditional rendering, which means showing or hiding components based on some logic.
This made my app feel more alive β it reacted to user states and conditions.
For example:
{isLoggedIn ? <h1>Welcome Back!</h1> : <h1>Please Log In</h1>}
π Day 6 and 7: Make Mini Project
β Lesson learned: Conditional rendering makes the UI feel personal and interactive.
β¨ Wrapping Up the Week
Looking back, itβs amazing how much ground I covered in just a few days.
I went from not knowing what JSX even was to actually building small interactive UIs with components, props, and conditions.
Every line of code I wrote made me feel more confident as a developer.
Next up on my journey: Hooks, State Management, and building something real! π
Top comments (0)