Skip to main content

Command Palette

Search for a command to run...

Exploring React Concepts: Understanding Props on Day 43 and 44 of #100DaysOfCode

Updated
β€’3 min read
Exploring React Concepts: Understanding Props on Day 43 and 44 of #100DaysOfCode
J

Hello there! πŸ‘‹ I'm Joshua, a passionate Full Stack Developer with a deep love for creating innovative and user-friendly applications. I have a diverse skill set that spans both front-end and back-end technologies, allowing me to bring complete and efficient solutions to the table.

Hello Techies!

Let's talk about something cool I learned recently on my #100DaysOfCode adventure – React props. Days 43 and 44 were all about getting cozy with this React thing called "props," and, it was really amazing!

Day 43: What's This Props Thing?

Props are like messages that React components pass to each other. It's a way for them to share info. So, on Day 43, I started with the basics. Imagine building blocks that talk to each other by passing notes – that's props! I learned how to make one part of my code send a message to another part. It's like giving instructions to different pieces of a puzzle.

Day 44: Props – Delving Deeper into Props

Day 44 was like the sequel. I went deeper into the props world. This time, I discovered that they can handle all sorts of things, like words, numbers, lists, and even instructions (functions). With this new knowledge, I felt like a coding wizard, making my components do cool tricks.

Building Dynamic Stuff

As you can see in the picture above, Props also let me create components that can change based on what info they get. It's like having a super-flexible toolkit where each tool knows what to do depending on the job. This flexibility opened up a world of possibilities for making dynamic and interactive websites.

Fixing Hiccups

Of course, not everything was smooth sailing. I ran into a few bumps, things didn't work as expected, and that's normal! Day 44 taught me that figuring out these bumps is part of the fun. It's like being a detective, solving mysteries in my code.

What I Took Away

Understanding props transformed the way I look at React. It's like learning a secret language that makes building things way easier. Now, as I keep going in my #100DaysOfCode challenge, I'm excited to see what else I can do with props and explore even cooler React stuff.

The Magic of Modularity

By splitting my code into different files, I discovered a superpower – modularity. Each file became a building block, and when combined, they formed a powerful and flexible structure. It made my code easier to read, understand, and maintain.

Extending Cleanliness to Props

On Day 44, as I continued with props, I extended the idea of clean code to my component files. Each component got its own cozy file, making my project look like a neat stack of well-labeled folders. Organizing components into separate files also brought joy to the debugging process. If something went wrong, I could pinpoint the issue quickly because everything had its designated place.

In conclusion

Learning about React props on Days 43 and 44 was like unwrapping a present – both exciting and filled with cool surprises. And also, putting your React components into different files is like making your digital space neat and organized. It's not just about looks; it's about creating a cozy place where your code can work really well. I can't wait to share more as my coding adventure continues. Stay tuned for more updates from my coding world!

Happy Coding. JNS.

More from this blog

B

Blogs | digitomize

14 posts

Our blog page is your coding hub, bursting with practical guides, cutting-edge trends, and thought-provoking discussions. Level up your skills, join the conversation, build your future.