Tag

#react

23articles
GuidesNov 2, 2026

Why hot reload doesn't work — the page won't update after you save

Hot reload not working in Vite or Next: three common causes — the bundler can't see files (WSL, Docker), import letter case, and state resets. How to fix each.

6 min read
?
BasicsOct 15, 2026

What is a state machine — and why your spinner spins next to an error

A state machine in plain words: why three flags — isLoading, isError and data — give you eight states instead of four, and how a single status fixes it.

6 min read
?
BasicsOct 15, 2026

useState vs useRef — what's the difference, and why the counter is stuck at zero

useState vs useRef in React: which one triggers a re-render, when you see the new value, and where to keep a timer id. A simple rule for which to pick.

6 min read
GuidesOct 11, 2026

Why your video doesn't autoplay — 3 causes, including React's muted bug

Why your website video doesn't autoplay: sound, playsinline on iPhone, and React dropping the muted attribute. How to check each cause and fix it.

6 min read
BasicsOct 11, 2026

What is a closure in JavaScript — and why your counter is stuck at 1

What a closure is in plain words: a function that remembers the variables from where it was born. And why it makes a React timer show 1 forever.

5 min read
BasicsOct 9, 2026

What is short-circuit evaluation — and where that stray «0» on screen came from

What is short-circuit evaluation (&& and ||), in plain words: why the second half may never run, and where a lone zero in your React UI comes from.

5 min read
BasicsOct 9, 2026

What is a linked list — and why a React hook can't hide inside an if

What is a linked list, in plain words: a chain where each item only knows the next one. Where it lives in React hooks and in your Git history.

5 min read
GuidesOct 9, 2026

How to close a menu on outside click — and why your modal closes when you select text

How to detect a click outside and close a menu or modal: a ready React hook, a no-code popover, and three bugs — from text selection to a stuck toggle button.

6 min read
BasicsOct 8, 2026

What is a tuple — and why useState returns an array of two

A tuple, explained simply: a fixed-length array where each position has its own meaning and type. Why useState is a tuple and where TypeScript won't protect you.

5 min read
GuidesOct 2, 2026

Why your input loses focus after every keystroke — 3 causes in React

Input loses focus after every letter? Three causes in React and plain JS: a component inside a component, a shifting key, and innerHTML — and how to fix them.

6 min read
GuidesOct 1, 2026

Why localStorage data disappears — four causes and how to check each

Why localStorage loses data after a reload: your code overwrites it, a different port, an object saved without JSON.stringify, the browser wiping it. Fixes.

5 min read
GuidesSep 29, 2026

Why my timer speeds up — and why it sometimes freezes at 1 instead

Timer ticking faster and faster, refusing to stop, or stuck at 1? Three real causes of a broken setInterval — how to check each one and how to fix it.

6 min read
GuidesSep 28, 2026

Why my event fires twice — three causes and how to fix each one

A click or key press fires twice, or even more? Three real causes of an event firing twice in JavaScript and React — and how to check and fix each one.

6 min read
BasicsSep 27, 2026

What is a pure function — and why React deliberately runs your code twice

What a pure function is in programming, in plain words: same input, same output, no side effects. Why it matters in React and in tests, with examples.

5 min read
GuidesSep 23, 2026

Why my loop never stops — and the tab freezes solid

An infinite loop: the tab froze, the fan is screaming, the server gets thousands of requests. Three real causes — from React useEffect to while — how to check and fix.

6 min read
BasicsSep 13, 2026

What is client-side routing in an SPA — and what the browser stops doing for you

Client-side routing changes the page address without asking the server. How it works under the hood, and the four things the browser no longer does for you.

5 min read
GuidesSep 13, 2026

How to keep filters in the URL — so a link opens the same view and Back works

How to store filters, sort order and the active tab in the page address: six steps with URLSearchParams, pushState vs. replaceState, and ready-to-use code.

6 min read
BasicsSep 2, 2026

What Is Hydration — and Why the Page Is Visible but the Buttons Don't Work Yet

Hydration is the moment JavaScript wires itself into the HTML the server already sent. Here's where the dead window and mismatch errors come from.

6 min read
GuidesAug 9, 2026

Why state doesn't update in React — and what reference comparison has to do with it

You called setState and the screen didn't re-render. Three real causes: mutating an array, state as a snapshot, and shallow copies — plus how to fix each.

5 min read
AI toolsJul 31, 2026

Next.js or Vite — what to pick for your first React project

Next.js or Vite: the difference isn't React, it's whether you need a server. Compared on SEO, link previews, hosting and learning curve — with a verdict.

6 min read
AI toolsJul 9, 2026

Next.js vs React — the difference, and which one a beginner should pick

Next.js vs React — which should a beginner pick? They're not rivals: Next.js is built on React. A comparison table and a clear verdict on where to start.

6 min read
BasicsJun 20, 2026

React or plain HTML — what to pick for your first site, no dogma

Not everyone needs React. For a landing page or blog, plain HTML is lighter and faster; React pays off when the interface is live. We compare and call it straight.

5 min read
BasicsJun 19, 2026

What is React — and why you stop touching the page by hand

React is a library where you describe how the screen should look, and it redraws it for you. In plain words: components, state, and the one trick that changes everything.

5 min read