Lx
Lexis dev
Home / Skill / community / react18-lifecycle-patterns

react18-lifecycle-patterns

Skill · community · v0.1.0
unsigned ⬇ imported

Provides exact before/after migration patterns for the three unsafe class component lifecycle methods - componentWillMount, componentWillReceiveProps, and componentWillUpdate - targeting React 18.3.1. Use this skill whenever a class component needs its lifecycle methods migrated, when deciding between getDerivedStateFromProps vs componentDidUpdate, when adding getSnapshotBeforeUpdate, or when fixing React 18 UNSAFE_ lifecycle warnings. Always use this skill before writing any lifecycle migration code - do not guess the pattern from memory, the decision trees here prevent the most common migration mistakes.

Namespace
community
Name
react18-lifecycle-patterns
Version
0.1.0
Kind
Skill
Trust
unsigned
REST URL
Source repo
Owner
github
Commit
541b7819d8c3545c6df122491af4fa1eae415779
Imported at
2026-05-18T20:05:35Z
Versions
Files