Day 24 of React Practice Today I built an App Store UI with category tabs and dynamic search functionality. Features Implemented: ✅ Social tab is active by default ✅ Displays apps based on the active category ✅ Case-insensitive search filtering ✅ Real-time filtering within the selected category ✅ When search is empty → shows all apps in the active category ✅ Switching tabs updates results instantly based on search input 🧠 What I Focused On: Managing active tab state Controlled input for search Conditional rendering Array filtering logic Clean component structure Writing scalable filtering logic This project helped me understand how real-world filtering systems work in 24 days in. Still building. #ReactJS #FrontendDevelopment #JavaScript #WebDevelopment #100DaysOfCode
More Relevant Posts
-
useEffect with no dependency array is like "I will run after every single render. You sneezed? I ran. You blinked? I ran. You THOUGHT about updating the state? I ran." 😂 ━━━━━━━━━━━━━━━━ useEffect(() => { }) → runs EVERY render 😨 useEffect(() => { }, []) → runs ONCE ✅ useEffect(() => { }, [val]) → runs when val changes ✅ ━━━━━━━━━━━━━━━━ The empty [] is not optional. It's not a suggestion. It's self-defense. 🛡️ Learn the dependency array. Save your app. Save yourself. 🙏 #React #JavaScript #WebDev #LearnToCode #ReactJS
To view or add a comment, sign in
-
-
Most React apps are slow for one reason. Developers re-render everything. After working on multiple production apps, I’ve noticed the same mistakes again and again. Here are 3 simple ways to improve React performance instantly: 1️⃣ Memoize expensive components Use React.memo for components that receive the same props. 2️⃣ Avoid unnecessary state Too many states cause unnecessary re-renders. 3️⃣ Use lazy loading Load components only when needed using React.lazy. Small improvements like these can make a huge difference in production performance. A fast UI = better user experience. What’s your favorite React performance trick? #React #FrontendDevelopment #JavaScript #WebDevelopment #ReactJS
To view or add a comment, sign in
-
-
Last month someone told me: “The app works… but it feels slow.” ❌ No crashes. ❌ No errors. ❌ Just slow. And in production, slow = users leaving quietly. So here’s what I did 👇 🔎 1. I measured first. Used React Profiler + Chrome DevTools. Turns out — too many unnecessary re-renders. ⚡ 2. I reduced re-renders. React.memo useMemo useCallback Smarter state management 📦 3. I reduced bundle size. Lazy loading Dynamic imports Removed unused libraries 🌐 4. I optimized API calls. Debouncing Pagination Avoided fetching everything at once Big lesson? Performance isn’t about making React faster. It’s about making React do less work. Before rewriting your app… open the profiler.... #ReactJS #NextJS #Frontend #WebDev #JavaScript #FullStack #Developers #TechLearning #ReactDeveloper #JavaScript #NextJS #ServerComponents #AppRouter #SoftwareEngineering
To view or add a comment, sign in
-
-
Improving React performance is not only about writing clean code, it’s also about how your application loads in the browser. One common mistake in large React apps is loading everything at once. Without lazy loading, the browser downloads a single large bundle that includes all components, even the ones the user may never visit. This increases the initial bundle size and makes the first load slow. With code splitting and lazy loading, the app loads only the essential code first. Other components are split into separate chunks and loaded only when the user navigates to them. This reduces the initial bundle size and improves loading speed significantly. #react #javascript #webperformance #frontend #codesplitting #lazyloading #developerlife
To view or add a comment, sign in
-
-
Most React developers have used hooks for years but have never used useDebugValue. That’s a mistake. useDebugValue is not for your app. It’s for your future self. When you open React DevTools and inspect a component that uses a custom hook, you usually see… nothing useful. Just: useCustomHook() With useDebugValue, you can turn that into: useAuth → Logged In useFetch → Loading useCart → 3 items This hook doesn’t affect UI. It doesn’t affect performance. It affects how fast you understand your own code. Here’s the unique part 👇 useDebugValue is documentation that never goes out of sync. Instead of comments or README files, the hook explains itself while you debug. In complex apps, this saves minutes per bug. Over months, it saves days. If you write custom hooks and care about maintainability, useDebugValue is a quiet superpower worth using. #React #Frontend #Debugging #JavaScript #CleanCode #LearningInPublic
To view or add a comment, sign in
-
Why Your React App Still Feels Slow (Even with memo & useCallback) You wrapped everything in React.memo. You added useCallback everywhere. Still slow? Here’s the truth: ❌ memo and useCallback don’t fix performance. They only prevent some unnecessary re-renders. Most slow apps happen because of: 1️⃣ State placed too high in the tree → Small update = huge render wave 2️⃣ Expensive work inside render → Sorting/filtering on every render 3️⃣ Optimizing the wrong components → Memoizing cheap UI like buttons & wrappers 4️⃣ Not using React DevTools Profiler → You’re debugging blind Performance rule: Measure first. Fix root causes. Memoize only when it actually saves time. Good state placement > random memoization. #React #Frontend #WebPerformance #JavaScript #SoftwareEngineering
To view or add a comment, sign in
-
-
Day 22: Word Counter — 30 Days of 30 Projects Challenge 🚀 Building a Word Counter App with Next.js Excited to share my latest project — a clean and responsive Word Counter App that performs real-time text analysis. ✅ Live Word Count ✅ Character Count ✅ Instant Updates ✅ Clear Text Functionality ✅ Clean & Responsive UI Built with: ⚡ Next.js 🎨 Tailwind CSS 🧩 shadcn UI 🟦 TypeScript This project helped me strengthen my understanding of React state management, App Router structure, and building reusable UI components. 🔗 Live Demo: 👉 https://lnkd.in/duCwR8Zn Consistency is the key — 22 days down, 8 more to go! 💪🔥 Asharib Ali #NextJS #ReactJS #FrontendDeveloper #WebDevelopment #JavaScript #TypeScript #TailwindCSS #ShadcnUI #UIUX #100DaysOfCode #BuildInPublic #webdeveloper #appdeveloper #CodingJourney #Vercel #AppRouter #DeveloperLife #WomenInTech #PakistanDevelopers 🚀
To view or add a comment, sign in
-
Small React detail that can easily cause a bug 👇 I recently had to override a Back button behavior in a React app. Most of the time the button asks the backend for the previous step in a dynamic flow. But in a couple of cases the screen wasn't really a new page — it was just an alternate view controlled by local state. So instead of asking the backend to go back, I needed the button to simply reset the local state. Something like: // Alternate view: reset local state setOverrideBackNavigation(() => () => { setIsAlternateView(null); }); The detail that can bite you: If you pass a function to a useState setter, React treats it as an updater and executes it. So if the value you want to store is itself a function, you need to wrap it. setState(() => actualFunction) Small detail, but easy to forget when working with function values in state. Curious if others ran into this before #react #frotend #javascript #webdevelopment
To view or add a comment, sign in
-
Day 10 #100DaysOfCode 💻 Today I learned the basics of React.js. At first, React felt confusing. There are many new concepts like components and JSX. But I started understanding that React helps us build UI using reusable components. One simple example I tried today: function App() { return ( <h1>Hello React 🚀</h1> ); } export default App; This small component renders a heading on the page. It looks simple, but it shows how React components work. Still learning and exploring. Step by step I will get better. #Akbiplob #ReactJS #JavaScript #WebDevelopment #FrontendDevelopment
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