how form works?👀 The code tsCopyEditsetForm((prev) => ({ ...prev, [name]: value })); ✅ What it does This is updating a specific field in the form state without losing the rest of the form data. 🧠 Step-by-step prev = previous state (the whole form object before...Aug 1, 2025·2 min read
TODO LIST using ReactImports: useEffect and useState are imported from React for managing state and side-effects. './App.css' imports the stylesheet. TodoProvider is imported from the context, which will be used to provide state and functions throughout the app. Todo...Jan 2, 2025·10 min read
Theme Switcher (context api)Dependencies and Imports: useEffect and useState are React hooks. ThemeProvider is imported from a custom context (./context/theme). ThemeBtn and Card are components used within App. State Management: A themeMode state is initialized with a de...Dec 31, 2024·7 min read
Context API NotesIntroduction When working with React, you often need to share data between components. The traditional way of passing data is through props. However, as your application grows, passing data through multiple levels of components (called "prop drilling...Dec 29, 2024·4 min read
Story: Building the Currency Converter App1. The Beginning: The User Interaction in the UI Imagine you’ve just opened the currency converter app. You see two sections: one where you can enter the amount you want to convert, and the other where the converted amount will appear. There are also...Dec 26, 2024·6 min read
Building a Password Generator in React: Step-by-Step Guide 💡✨Introduction to the Password Generator Project 🛠️This project is a great way to practice React concepts like state management, memoization, DOM manipulation, and more. With a clean user interface and powerful functionality, you can generate secure p...Dec 22, 2024·4 min read
Dynamic Background Color App Using React: A Fun Mini-Project 🎨✨Today, I worked on a simple yet interactive project that demonstrates the power of React's state management and dynamic UI updates. This app lets users change the background color of the screen with the click of a button. Let's dive into how it works...Dec 20, 2024·3 min read