Day-17 of React Practice Today I built a Destination Search feature using React. 🔹 Initially, all destinations are displayed 🔹 When the user types in the search box, the list filters in real-time 🔹 Search works case-insensitive 🔹 Data is passed via props (destinationsList) and filtered using state What I practiced today: Handling input with state Filtering lists in React Working with props and dynamic rendering Building simple, real-world UI logic Small features like this are great for strengthening core React concepts. #ReactJS #JavaScript #FrontendDevelopment #WebDevelopment #CodingJourney #100DaysOfCode #CCBP #ccbp #NXTWAVE #nxtwave #LearningByDoing #Developers #Programming #ReactPractice #UIDevelopment
More Relevant Posts
-
🚀 React 19 Just Changed Form Handling Forever In React 18, submitting a form usually looked like this: ❌ useState for loading ❌ manual onSubmit handlers ❌ extra boilerplate for async actions But React 19 introduces a cleaner way 👇 ✅ useActionState + Form Actions Now you can handle form submissions like: Built-in pending state Less code More declarative UI Better integration with Server Actions ✨ Instead of writing multiple lines for loading logic, React gives you: const [state, action] = useActionState(saveProfile) And your form becomes: <form action={action}> #ReactJS #React19 #JavaScript #FrontendDevelopment #WebDevelopment #Programming #SoftwareEngineering #ReactHooks #DevCommunity
To view or add a comment, sign in
-
-
As developers, we all know the struggle. Multiple projects multiple node_modules folders then GBs of wasted disk space 😅 That’s where npkill comes in. 🔍 It scans your system and finds old or unused node_modules folders. ⚡ Shows their size instantly. 🗑 Lets you delete them easily from the terminal. No more manually searching project by project! If you're working with Node.js, Express, NestJS, or Next.js projects this tool is a must-have in your workflow. 👉 Try it today and keep your system clean! #NodeJS #JavaScript #WebDevelopment #Developers #OpenSource #Productivity #FullStack #Programming #npkill
To view or add a comment, sign in
-
-
Basic Principles of Event Handling in React??? Event handling in React is guided by a few basic principles that align with its component-based architecture. These principles include: - Synthetic event system - Naming conventions - PassingPassing event handlers as props - Inline function and component methods React uses a synthetic event system that ensures events behave consistently across different browsers. This wraps the native event system in browsers, providing a unified API regardless of the browser in which React is run. #EventHandling #Reactjs #JavaScript #nextjs #programming #webdevelopment
To view or add a comment, sign in
-
-
React props can be passed conditionally Props that are passed to components can be thought of like arguments that are passed to a function. If prop values are not passed a certain component, an error will not be thrown. Instead, within the component that prop will have a value of "undefined".. If you would like to be alerted to when a value is not passed as a prop to a component, you can use a tool like prop-types or TypeScript using these tools. With prop-types or TypeScript, we can tell React the props we are passing for a given component, what their values should be, and whether they are optional. In plain React, be aware that passing props can be something you forget to do. Also you might not pass a certain prop to a component, if you so choose. #Reactjs #JavaScript #nextjs #programming #webdevelopment
To view or add a comment, sign in
-
-
Follow Sakshi K. for more such content. ⚛️ ReactJS Cheat Sheet ⚛️ Quick and handy ReactJS cheat sheet covering setup, basics, JSX, props, and state. A great reference for beginners and a fast revision guide for developers building modern UI applications. 🚀 Learning React step by step to level up my frontend development skills. Consistency and practice are the real keys 🔑💻 #ReactJS #ReactCheatSheet #FrontendDevelopment #WebDevelopment #JavaScript #Coding #Programming #DeveloperCommunity #LearnReact #CodingJourney
To view or add a comment, sign in
-
React Practice – Day 18 Today I built a Simple Todos app and focused on handling dynamic lists and delete functionality in React. What I implemented: -->Displayed a list of todos from an initial list -->Added a Delete button for each todo -->On clicking Delete, the selected todo is removed from the list -->Worked with props and state to manage UI updates -->This helped me understand state updates, list rendering, and event handling better in React. Small features, but real-world fundamentals. #React #JavaScript #WebDevelopment #Frontend #MERN #CCBP #ccbp #NXTWAVE #nxtwave #CodingJourney #100DaysOfCode #Developer #LearningInPublic #BuildInPublic #ReactJS #Programming
To view or add a comment, sign in
-
Key prop in React lists - yeh ek chota sa thing hai but bahut important hai! I see developers using array index as key when they shouldn't. Index as key is fine ONLY if: - The list is static (never reordered, added, or removed) - Items don't have unique IDs - Performance isn't a concern But if your list can change, use a unique ID. React uses keys to identify which items changed, were added, or removed. Wrong keys = wrong updates = bugs! Also, don't use Math.random() as key. That's just wrong on so many levels. Each render will create new keys, causing unnecessary re-renders. Best practice: Always use stable, unique identifiers. Your future self will thank you! #reactjs #webdevelopment #javascript #frontend #coding #reactpatterns #programming #indiancoders #tech #softwaredevelopment
To view or add a comment, sign in
-
Lecture - 17: Continuing Object-Oriented Programming in JS by Hitesh Choudhary - Error handling - Exception handling - try and catch - Promises overview - then and catch in Promises Chai Aur Code #chaicode #JS #OOPs #cohort26
To view or add a comment, sign in
-
-
Stop your React apps from crashing! 🚀 Infinite useEffect loops are the #1 cause of performance leaks and API over-billing. I’ve put together a pro-level guide to help you master dependency arrays, fix reference traps with useMemo, and debug "Ghost Mutations" like a senior dev. Master the loop here: 👉 [https://lnkd.in/gnuSHhxj] #ReactJS #WebDev #JavaScript #CleanCode #Programming
To view or add a comment, sign in
-
-
Not every React re-render is a problem. When state or props change, function components re-run, but the DOM only updates where needed. Real issues appear when you have: - Heavy calculations inside render - Changing object/function references - Props that break memoization Use useMemo and useCallback wisely not to stop re-renders, but to keep references stable. #ReactJS #FrontendDevelopment #WebDevelopment #JavaScript #ReactTips #PerformanceOptimization #WebDev #CodingTips #LearnReact #Programming Before optimizing, ask: «Is this re-render actually expensive, or am I optimizing too early?» React is built for frequent re-renders. Understanding them beats trying to prevent them.
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