World Congress 2024 Aug 20, 2024 Session details

Dos and don'ts with react hooks. An opinionated approach

Daniel Espino Garcia

Constant memoization in React is a premature optimization trap. Discover an opinionated approach to hooks that prioritizes clean code, eliminates needless re-renders, and future-proofs your architecture.

Pause
Mute Enter Fullscreen
#1 about 3 min

Introduction to React hooks usage in large codebases

Managing functional components in large open-source codebases highlights common patterns and pitfalls.

#2 about 4 min

Understanding React hooks internal state and memory overhead

Relying on internal linked lists means hooks add memory overhead during each render pass.

#3 about 3 min

Prioritizing code readability over minor performance optimizations

Optimizing for future readers and maintainers matters more than eliminating marginal performance bottlenecks.

#4 about 3 min

Moving static functions and constants outside React components

Extracting non-dependent logic from components prevents redundant memory allocation and simplifies dependencies.

#5 about 3 min

Declaring explicit dependency arrays to prevent future regression bugs

Explicitly defining all variables inside dependency arrays prevents unexpected production bugs during subsequent modifications.

#6 about 2 min

Clarifying hook dependencies with derived intermediate variables

Naming complex condition logic as intermediate variables clarifies business rules and stabilizes render dependencies.

#7 about 2 min

Avoiding unnecessary component re-renders with mutable references

Storing non-visual data in references prevents disruptive cascading re-renders across the component tree.

#8 about 2 min

Removing dependency arrays with functional state updates

Utilizing the previous state callback in updater functions removes the need for object dependencies.

#9 about 2 min

Eliminating redundant re-renders caused by state updates in effects

Calculating derived values directly during render removes the need to synchronize state inside effect hooks.

#10 about 3 min

Sharing reusable component logic with custom React hooks

Encapsulating repeated lifecycle and platform logic into standalone custom hooks reduces codebase duplication.

Matching moments

3:48 min

Designing an ideal hook-based state management API

Adam Klein · LIVE

44 sec

Constructing basic UI components using React hooks

Marc Rousavy Marc Rousavy · World Congress 2025

1:22 min

Advantages of utilizing native React state management tools

Marc Brehmer Marc Brehmer · World Congress 2024

4:38 min

Introduction to react components, props, and state

Clemens Helm · World Congress 2023

5:01 min

Designing flexible and reusable component APIs

Emma Britnor Emma Britnor · World Congress 2024

1:46 min

Utilizing React lifecycles to reduce redundant rendering

Shem Magnezi Shem Magnezi · World Congress 2025

Upcoming sessions on this topic

Open session

World Congress 2026 North America

September 25, 2026 · 11:00–11:30

Stage 7

Beyond Vibe Coding: An AI Builder’s Guide to Migrating 10k+ React Components

Shubham Chaurasia

Senior Software Engineer @ Meta

Shubham Chaurasia
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 9

One Repo, One Strategy: Scalable Full-Stack Testing in a Monorepo World

Bartosz Leczycki, Paweł Matynia

Bartosz Leczycki
Paweł Matynia
Open session

World Congress 2026 North America

September 25, 2026 · 15:30–15:40

Outdoor Stage

Offloading IoT State: Solving the Memory Crisis on Legacy Hardware

Pravin Nagare

Senior Software Engineer, Roku

Pravin Nagare
Open session

World Congress 2026 North America

September 24, 2026 · 12:50–13:20

Stage 7

Architecting AI in Angular: WebMCP, A2UI, and the Agent Experience

Ankita Sood

Sr. Principal Engineer @ Secureworks | Angular GDE

Ankita Sood
Open session

World Congress 2026 North America

September 24, 2026 · 14:50–15:20

Stage 9

How to generate business value through performance optimizations

Nikolai Sidiropulo

Software Engineer at Meta

Nikolai Sidiropulo
Open session

World Congress 2026 North America

September 25, 2026 · 10:20–10:50

Stage 9

Testing React Backends Like a Pro: Mocking Databases with SQLite

David Morris

Solution Architect

David Morris