Skip to content

feat: modernize React Memoization chapter#32

Merged
davidbarna merged 1 commit intomasterfrom
modernize-react-memoization-chapter
Mar 4, 2026
Merged

feat: modernize React Memoization chapter#32
davidbarna merged 1 commit intomasterfrom
modernize-react-memoization-chapter

Conversation

@davidbarna
Copy link
Copy Markdown
Collaborator

Summary

  • Update React.memomemo() named import style (React 18+)
  • Convert all code snippets from JS/JSX to TypeScript/TSX with type annotations
  • Replace curried event handler example with idiomatic name-attribute pattern
  • Add fiber node caveats to simplified useCallback/useMemo implementations
  • Expand "when to use / when not to" section with individual slides and code examples for each bullet point
  • Add React Compiler section covering auto-memoization in React 19
  • Restructure intro into "Equality in JavaScript" and "Functions are objects" sections

Test plan

  • Run npm run build and verify Gatsby renders the chapter without errors
  • Open the chapter in the browser and verify all slides render correctly
  • Check that code syntax highlighting works for ts and tsx fences

🤖 Generated with Claude Code

- Update React.memo to memo() named import style (React 18+)
- Convert all code snippets from JS/JSX to TypeScript/TSX with type annotations
- Replace curried event handler example with idiomatic name-attribute pattern
- Add fiber node caveats to simplified useCallback/useMemo implementations
- Expand "when to use / when not to" with dedicated slides and code examples
- Add React Compiler section covering auto-memoization in React 19
- Restructure intro into Equality in JavaScript / Functions are objects sections
@davidbarna davidbarna merged commit 8cd3739 into master Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant