git404hub

what is hooks-perf-issues fr?

gaearon/hooks-perf-issues — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2019-03-03

13JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

tl;dr

A teaching demo showing how React hooks can make UI updates 4-5x slower than class components if callback functions aren't handled carefully.

vibe map

mindmap
  root((repo))
    What it does
      Hooks vs classes demo
      Shows perf pitfall
      Educational only
    Tech stack
      JavaScript
      React
      React.memo
    Use cases
      Learn why app feels slow
      Understand callback identity
      Fix unnecessary re-renders
    Audience
      React developers
      Performance learners
    Cause
      New callback each render
      Memoized children re-render

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Understand why a hooks-based React app feels slower than expected.

VIBE 2

Learn how new callback functions defeat React.memo optimizations.

VIBE 3

Compare measured render timings between hooks and class components.

VIBE 4

Get guidance on managing hook dependencies to avoid unnecessary re-renders.

what's the stack?

JavaScriptReact

how it stacks up fr

gaearon/hooks-perf-issues09catho/axonabdulrdeveloper/react--tic-tac-toe
Stars131313
LanguageJavaScriptJavaScriptJavaScript
Last pushed2019-03-03
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/54/51/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

prompts (copy fr)

prompt 1
Explain why this repo's hook version is 4-5x slower than the class version.
prompt 2
Show me how React.memo fails to prevent re-renders when callbacks change identity.
prompt 3
Help me apply the lesson from gaearon/hooks-perf-issues to fix slow re-renders in my own React app.
prompt 4
What are the fixes for the callback-identity problem shown in this repo?

Frequently asked questions

what is hooks-perf-issues fr?

A teaching demo showing how React hooks can make UI updates 4-5x slower than class components if callback functions aren't handled carefully.

What language is hooks-perf-issues written in?

Mainly JavaScript. The stack also includes JavaScript, React.

Is hooks-perf-issues actively maintained?

Dormant — no commits in 2+ years (last push 2019-03-03).

How hard is hooks-perf-issues to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is hooks-perf-issues for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.