🚀 Built a Custom OTP Input Field using React.js Excited to share my latest mini project — an interactive OTP (One-Time Password) input component built using React Hooks. 🔧 Features: ✔️ Auto focus to next input ✔️ Backspace moves to previous field ✔️ Arrow key navigation (Left & Right) ✔️ Only numeric input allowed ✔️ Clean and reusable component structure 🛠 Tech Used: React.js useState useRef useEffect JavaScript (Event Handling) This project helped me strengthen my understanding of: 👉 Controlled components 👉 DOM manipulation using useRef 👉 Keyboard event handling 👉 Better UX design practices Always learning and improving 🚀 #ReactJS #FrontendDevelopment #JavaScript #WebDevelopment #Learning #100DaysOfCode
More Relevant Posts
-
🚀 useEffect vs useLayoutEffect in React — Understanding the Right Tool for the Right Situation While building modern UI with React, developers often rely on hooks like "useEffect" to handle side effects. However, there are scenarios where "useLayoutEffect" becomes the better choice. The key difference lies in when they execute during the rendering lifecycle. 🔹 useEffect runs after the browser paints the UI, making it ideal for tasks such as API calls, subscriptions, logging, and other asynchronous operations. Because it doesn’t block rendering, it helps keep applications performant and responsive. 🔹 useLayoutEffect, on the other hand, runs synchronously after the DOM updates but before the browser paints the screen. This makes it especially useful when working with DOM measurements, layout calculations, or visual adjustments that must occur before the user sees the UI. Using "useLayoutEffect" in these situations helps prevent UI flickering, layout shifts, or incorrect measurements, resulting in a smoother and more predictable user experience. 📌 Rule of thumb • Use "useEffect" for most side effects • Use "useLayoutEffect" when your logic depends on DOM layout or visual synchronization before paint Understanding this subtle difference can help developers build more stable, performant, and visually consistent React applications. Reference from 👉 Sheryians Coding School #React #FrontendDevelopment #WebDevelopment #JavaScript #SoftwareEngineering
To view or add a comment, sign in
-
-
Day 16/21: Building Interactive Auth UIs in React! Authentication is the gateway to almost every modern web application. For Day 16 of my challenge, I moved beyond the product display and built a fully responsive Login & Signup UI from scratch. 🛠️ What I Implemented: State-Driven Navigation: Used React useState to toggle between Login and Signup modes seamlessly within a single component. Dynamic Form Rendering: Practiced conditional rendering to change headings, input fields, and buttons based on the user's intent. Consistent Branding: Leveraged Tailwind CSS to maintain a cohesive dark-themed aesthetic that matches my product catalog. UX Focus: Added intuitive "Sign up" and "Sign in" toggles at the bottom to ensure a frictionless user experience. 💡 The Engineering Challenge: As a Computer Science Engineer, I focused on keeping the component logic clean and reusable. Managing form states and ensuring the modal remains centered and responsive across all viewports was a great exercise in CSS Flexbox and React's lifecycle. Rebuilding my React skills through these daily sprints is proving to be incredibly effective. Seeing a static design come to life with logic is what I love most about development! 🔗 GitHub Repo: https://lnkd.in/g4gUwsjX Live URL : https://lnkd.in/gvkYUNAh #ReactJS #TailwindCSS #FrontendDevelopment #AuthUI #UserExperience #21DaysOfLinkedIn #MERNStack #CodingChallenge #CSByHeart
To view or add a comment, sign in
-
🚀 Building a Random Password Generator using useState, useEffect, useRef & useCallback I recently built a Random Password Generator project and gained some valuable hands-on experience with React hooks. Here are my key learnings: 🔹 useCallback – Optimizing Performance I learned that when you don’t want a function to be recreated on every render, you can use useCallback. By specifying dependencies, React only recreates the function when needed, improving overall efficiency. 🔹 useEffect – Controlling Side Effects If you want React to re-run a function after a state change, useEffect is the way to go. In my project, whenever the password length or character options changed, I needed to regenerate the password. So I used: useEffect(() => { generate(); }, [length, numbers]) This ensured the password updates automatically whenever dependencies change. 🔹 useRef – Direct DOM Access For better UX, I used useRef to directly access the HTML element when needed, avoiding unnecessary re-renders. 🔹 Clipboard Feature – Improving UX I implemented a copy-to-clipboard feature using: window.navigator.clipboard.writeText(password) This makes it super easy for users to copy the generated password instantly. 💡 Key Takeaway: Understanding when and how to use these hooks can significantly improve both performance and user experience in React applications. #React #WebDevelopment #JavaScript #FrontendDevelopment #LearningInPublic #Projects
To view or add a comment, sign in
-
⚛️ A small React tip that many developers ignore — Accessibility While building UI, most of us focus on performance, clean design, and functionality. But one important thing often gets missed: Accessibility (a11y). Accessibility simply means making sure your application works for everyone, including people who use screen readers or navigate using only a keyboard. One mistake I used to make earlier 👇 Using clickable divs like this: It works visually, but there are some problems: • Screen readers don’t recognize it as a button • Keyboard users can’t trigger it properly • It breaks semantic HTML A better way is simply using the correct element: Submit With this, you automatically get: • Keyboard support (Enter / Space) • Better accessibility for screen readers • Cleaner and more semantic code 💡 Small takeaway: Whenever possible, prefer semantic HTML elements instead of generic divs. Sometimes the smallest changes make our applications usable for many more people. #reactjs #javascript #webaccessibility #frontenddevelopment
To view or add a comment, sign in
-
🎨 Project Showcase #12 – Background Color Changer (React.js) In this project, I built a simple Background Color Changer using React.js. The application allows users to change the background color of the page by clicking buttons representing different colors. Github link- https://lnkd.in/g72wdbGn ✨ Features: 🔹 Click a color button to instantly change the background color 🔹 The color name updates dynamically on the screen 🔹 Built using React’s useState hook to manage state changes 🔹 Simple and interactive UI for quick visual feedback 💡 What I practiced in this project: 🔹Managing state using useState 🔹Handling button click events in React 🔹Updating UI dynamically based on state changes 🔹Understanding how React re-renders components when state updates Small projects like this helped me build a strong foundation in React and understand how state drives UI updates. More projects from my learning journey coming soon 🚀 #ReactJS #JavaScript #FrontendDevelopment #WebDevelopment #LearningInPublic #ProjectShowcase #ReactProjects
To view or add a comment, sign in
-
🎉 Just built and excited to share my latest project: Media Vault! I created a React + Redux web application where you can search, explore, and save images & videos using the Pexels and Unsplash APIs. This project features a modern, interactive UI with smooth hover effects, media filtering, and a personal collection system saved in localStorage. Check out the video demo below to see it in action: - Search for any keyword like “flowers” or “cats” - View both Photos and Videos - Save your favorites and manage your collection - Remove items from your collection if needed This project helped me strengthen my frontend development, Redux state management, API integration, and UI/UX skills. You can also explore the full project on GitHub: https://lnkd.in/d982QgHh #ReactJS #Redux #FrontendDevelopment #WebDevelopment #PortfolioProject #JavaScript #WebApp
To view or add a comment, sign in
-
🧑💻 Built a File Explorer UI using React Worked on building a File Explorer component with a nested folder structure and interactive controls. Features: • Expand / collapse folders • Add new file or folder • Delete file or folder • Recursive rendering for nested structure What I learned: • How to design and manage recursive components in React • Handling deeply nested state updates in a clean way • Structuring data for hierarchical UIs • Improving UX with simple interactions (toggle, add, delete) This was a great exercise in building reusable and scalable UI components. Demo 👇 #ReactJS #FrontendDevelopment #BuildInPublic #JavaScript #WebDevelopment
To view or add a comment, sign in
-
Built a Dynamic Todo App as my next DOM project Started with a simple idea — a basic todo list. But instead of stopping there, I pushed it further to make it more interactive and user-friendly. Features: • Add tasks • Delete tasks • Edit tasks dynamically (inline editing) • Clean and responsive UI • Smooth user interactions What I learned: Working with the DOM really clicked for me in this project — especially how to dynamically update elements and manage state without any frameworks. One small feature like "Edit Task" actually taught me a lot about: → DOM manipulation → Event handling → UI/UX thinking Check out here:-https://lnkd.in/gq9cz38i Special thanks to Hitesh Choudhary Piyush Garg Akash Kadlag and Suraj Kumar Jha for teaching #JavaScript #WebDevelopment #Frontend #100DaysOfCode #LearningInPublic #Projects #chaicode
To view or add a comment, sign in
-
⏱️ Built a Stopwatch using HTML, CSS & JavaScript 🚀 Excited to share another mini project from my frontend development journey — a Stopwatch Web App! This project demonstrates how JavaScript can be used to track and display time accurately in the browser. 🔹 Tech Stack Used: ✅ HTML5 – Structured layout ✅ CSS3 – Clean and responsive UI design ✅ JavaScript – Time logic and interactive functionality 🔹 Key Features: ✔️ Start, Stop, and Reset functionality ✔️ Accurate time tracking (hours, minutes, seconds, milliseconds) ✔️ Simple and user-friendly interface ✔️ Responsive design for all devices Through this project, I improved my understanding of: 👉 JavaScript timing functions (setInterval, clearInterval) 👉 DOM Manipulation 👉 Event Handling 👉 Building reusable UI components Small projects like this help strengthen frontend fundamentals and improve problem-solving skills step by step. 💡 🔗 Live Demo: https://lnkd.in/g4e2n2Wf #WebDevelopment #FrontendDeveloper #JavaScript #HTML #CSS #UIDeveloper #ReactDeveloper #BuildInPublic #LearningByBuilding
To view or add a comment, sign in
-
-
Day 24 of Learning React – Conditional Styling Today I learn how to apply styles conditionally in React based on state or props. This allows the UI to change appearance depending on user actions or data. I practiced dynamically updating styles, such as changing colors or classes based on certain conditions. This helps create better user interactions and clearer visual feedback. Understanding conditional styling made the UI feel more responsive and interactive. Small details like this can greatly improve the overall user experience. Continuing to improve step by step. #React #ReactJS #Frontend #WebDevelopment #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development