Skip to main content

Command Palette

Search for a command to run...

React Summary Day-6

Published
2 min read

Heyy Everyonee! This is Day 6 of learning react from Hitesh Sir (Chai Aur Code). This is series is amazing! So much learning, not only theoretical but actually implementing it through project. Today we build the currency converter. For example usd to inr that is one dollar = x inr. In this project i learned to make the custom hooks. Its actually simple, its just function. Inside the custom hook, we used the hooks from react. And i also learned to make the components, reusable component. How to make a modular component to use it generally. More importantly in this project, i learned the thought process of how things are build. How to think in relation to optimization, how to approach the problem, how to start building it, what is right mindset required to write a clean and modular code. This learning is pricelesss, thanks hitesh sirr for this learning.

So, making the Components is also simple. Here, the knowledge of props is on test. If you know props well, you can make components more modular and clean, and its actually simple, its just parameters, but the real skill is identifying what parameters do you need as per requirement of project. Everything is else is just core javascript. While making this project, fundamentals of hooks get clear and i am now comfortable with hooks. And now also with props. Identifying props are essential thing. When i first try to do my own, i get completely blank, i cant decide what props i need. Now i understand, that this skill comes with practice.

In this project, i learned to handle basic API. How to handle data, it comes in string, it needs to convert to JSON format etc, its basically core javascript. Its basic API handling, I look forward to handle some complex api to gain experience working with api. This API is simple one. But i learned a lot in this project, though project seems simple, there are instances where i gone completely blank, then it hitss ohh thats whyy we used this, ohh this is how its happening. Its fun to learn through project cause it gives actual application of the methods we use like hooks, props, etc.