Hi guys, I almost couldn’t show up today, cus guess what.. I’m just waking up from sleep 🤦🏽♂️😅, but regardless..
It's Day 2 of my React journey, and today I dove deeper into what are known as React components..
I discovered that components are the building blocks of a React application. They allow you to break your UI into smaller, reusable pieces, making your code cleaner, easier to manage, and more scalable.
To put what I learned into practice, I created Home, About, and Contact components ( just for this tutorial) Instead of writing everything in a single file, I separated each page into its own component, which made the project much more organized and easier to maintain.
I also learned about React Props and that they’re used to pass data from one component to another, especially from a parent component to a child component.
This makes components reusable because you can pass different values to the same component instead of rewriting it multiple times.
Not bad for Day 2 😁. Looking forward to learning even more tomorrow.