React 18 Lifecycle Patterns Reference for migrating the three unsafe class component lifecycle methods to React 18.3.1 compliant patterns. Quick Decision Guide Before migrating any lifecycle method, identify the semantic category of what the method does. Wrong category = wrong migration. The table below routes you to the correct reference file. componentWillMount - what does it do? | What it does | Correct migration | Reference | |---|---|---| | Sets initial state ( ) | Move to | → componentWillMount.md | | Runs a side effect (fetch, subscription, DOM) | Move to | → componentWillMount.md | |…