Day 82 / 365 👨💻 Started understanding React state. 🧠 Problem that useState solves ⚙️ How useState works step by step 🔄 Why re-rendering happens ⏳ Why state updates aren’t immediate 🔁 Updater function vs direct value #365DaysOfCode #React #JavaScript #Frontend
Understanding React State with useState
More Relevant Posts
-
While working on a full-stack project with Next.js, I sometimes needed to quickly check environment variables without modifying the code. Here’s a simple way to do it directly from the terminal (required 'dotenv' library): Check env value: node -e "require('dotenv').config(); console.log(process.env.DATABASE_URL)" It’s a small tip, but quite useful when you want to check env value. I’ll probably share a few more small things like this from my project along the way. #nextjs #nodejs #dotenv #webdevelopment #softwareengineering #buildinpublic #javascript #devtips #webdevUK
To view or add a comment, sign in
-
React Query changed how I think about state — and I have not used Redux since The server state vs client state distinction that React Query makes explicit replaced my need for Redux entirely. Here is the mental model shift. Full breakdown (7 min read) → https://lnkd.in/gcUhHrV2 #ReactJS #Frontend #JavaScript #TypeScript #WebDev #UIEngineering
To view or add a comment, sign in
-
-
Day 86 / 365 👨💻 Light practice focused on strengthening basics. 🧩 Revisited React component structure ⚙️ Practiced small state updates with useState 🔁 Observed re-render behavior in simple examples 🧠 Focused on keeping logic clear and predictable #365DaysOfCode #React #JavaScript #Frontend
To view or add a comment, sign in
-
🧠 React Hook Lifecycle Quiz Can you predict the output and explain why? 👇 🔹 Phase 1: Initial Mounting - What will be logged on the first render? 🔹 Phase 2: Updating (when clicking incrementCount) - What will be logged after clicking the button? #ReactJS #Frontend #WebDevelopment #JavaScript #ReactHooks #NextJS
To view or add a comment, sign in
-
-
React Tip: Use Functional Updates When new state depends on previous state: javascript // Wrong way setCount(count + 1); // Right way setCount(prevCount => prevCount + 1); Why? React batches updates. Functional updates ensure you always have the latest value. #ReactJS #FrontendDeveloper #CodingTips
To view or add a comment, sign in
-
just published part 2 of my React internals series , this one covers what actually happens when you call setState and how does re-rendering works. part 1 (initial render): https://lnkd.in/dycpqavw part 2 (re-render): https://lnkd.in/d4tWTwmk #react #javascript #frontend #webdev
To view or add a comment, sign in
-
🚀 Still using await inside loops in Node.js? You might be slowing down your entire backend without realizing it. Switching to Promise.all() for independent tasks can massively boost performance⚡ Small optimization. Big impact. Are you writing async code the right way? #NodeJS #JavaScript #BackendDevelopment #Performance #CodingTips #AsyncAwait
To view or add a comment, sign in
-
-
Day 97 / 365 👨💻 Stayed consistent with React practice. 🧩 Tweaked a small component for better structure 🔁 Observed state changes and UI updates ⚙️ Simplified some existing logic 🧠 Focused on keeping things clean and understandable #365DaysOfCode #React #JavaScript #Frontend
To view or add a comment, sign in
-
Day 94 / 365 👨💻 Kept building consistency with React practice. 🧩 Worked on a small component tweak 🔁 Observed how UI updates with state changes ⚙️ Fixed minor issues in logic 🧠 Focused on keeping code simple and readable #365DaysOfCode #React #JavaScript #Frontend
To view or add a comment, sign in
-
⚠ Vite v8 is not supporting TailwindCss? Here’s the Fix! Recently, many react developers are facing an issue where Vite v8 is not supporting the TailwindCss properly. If you are also stuck with this problem, don’t worry here are the solution from official npm. Just add this code to your `package.json` file and it will helps resolve the version conflict between Vite v8 and TailwindCss plugin, so they can work together smoothly. After adding this: 1. Save your file 2. Re-run your project #Vite #TailwindCSS #WebDevelopment #JavaScript #ReactJS #NextJS #CodingTips #DevProblems
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