MCPcopy
hub / github.com/wojtekmaj/react-lifecycle-methods-diagram

github.com/wojtekmaj/react-lifecycle-methods-diagram @main sqlite

repository ↗ · DeepWiki ↗
36 symbols 73 edges 29 files 1 documented · 3%
README

CI

React Lifecycle Methods diagram

An interactive version of React Lifecycle Methods diagram tweeted by Dan Abramov. Built with React, obviously.

I did my best to make the diagram fully accessible, both for keyboard navigation and screen readers for visually impaired people.

Online version is also available!

How to use the diagram

  • Click any method name to read its official documentation (opens in a new tab).
  • Methods in bold are the most common ones.
  • Actions that are not methods, but otherwise help reading the diagram, are in italics.

Collaboration

You are welcome to raise issues and create pull requests.

Particularly valuable contributions are those regarding i18n as I only know so many languages. Adding new locale is pretty easy, but there's a separate i18n guide in case you get lost.

You can also add a new version of the diagram in case React lifecycle methods are changed. There is a separate versions guide in case you get lost.

Prerequisites

To contribute, you need to have the following prerequisites installed:

  • Node.js
  • Yarn
  • IDE of your choice

Starting the project

  • yarn install (first time only)
  • yarn dev

Building the project

  • yarn build

License

The MIT License.

Author

Wojciech Maj kontakt@wojtekmaj.pl https://wojtekmaj.pl

Thank you

Sponsors

Thank you to all our sponsors! Become a sponsor and get your image on our README on GitHub.

Backers

Thank you to all our backers! Become a backer and get your image on our README on GitHub.

Top Contributors

Thank you to all our contributors that helped on this project!

Top Contributors

Core symbols most depended-on inside this repo

findLanguage
called by 3
src/Options.tsx
isMethod
called by 3
src/shared/utils.ts
setLocaleToDocument
called by 2
src/Root.tsx
isInitiator
called by 2
src/shared/utils.ts
splitUpperCase
called by 2
src/shared/utils.ts
getLocalStorage
called by 1
src/Root.tsx
renderChildren
called by 1
src/diagramElements/Section.tsx
autoFillProps
called by 1
src/diagramElements/Subsection.tsx

Shape

Function 36

Languages

TypeScript100%

Modules by API surface

src/shared/utils.ts6 symbols
src/Root.tsx6 symbols
src/diagramElements/DocLink.tsx3 symbols
src/Options.tsx3 symbols
src/diagramElements/Subsection.tsx2 symbols
src/diagramElements/Section.tsx2 symbols
src/versions/16.4/Updating.tsx1 symbols
src/versions/16.4/Mounting.tsx1 symbols
src/versions/16.3/Updating.tsx1 symbols
src/versions/16.3/Unmounting.tsx1 symbols
src/versions/16.3/Mounting.tsx1 symbols
src/legendElements/Phase.tsx1 symbols

Dependencies from manifests, versioned

@biomejs/biome2.4.10 · 1×
@types/node* · 1×
@types/react19.2.0 · 1×
@types/react-dom19.2.0 · 1×
@vitejs/plugin-react6.0.2 · 1×
@wojtekmaj/react-t2.0.3 · 1×
clsx2.0.0 · 1×
country-code-to-flag-emoji1.3.1 · 1×
get-user-locale2.3.0 · 1×
husky9.0.0 · 1×
react19.2.4 · 1×

For agents

$ claude mcp add react-lifecycle-methods-diagram \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact