## Class Component Migration ### Filenames - [ ] [src/components/withDelayToggleButtonState.js](https://github.com/Expensify/App/blob/main/src/components/withDelayToggleButtonState.js) - **type:** `React.Component` - **has state values:** true - **has refs:** false - **has context:** false - **lifecycle methods:** `componentWillUnmount` ### Task - We currently have some class components in our codebase that we would like to refactor to a function component. - Here's a link with some general advice on how to refactor a class component to a function component: https://react.dev/reference/react/Component#alternatives - If you need additional guidance, please ask in [#expensify-open-source](https://expensify.slack.com/archives/C01GTK53T8Q) - Test for any regressions and verify that there are no breaking changes <details><summary>Upwork Automation - Do Not Edit</summary> <ul> <li>Upwork Job URL: https://www.upwork.com/jobs/~01f71d79044993f634</li> <li>Upwork Job ID: 1685090997633961984</li> 2023-07-29<li>Automatic offers: </li> <ul> <li>s77rt | Reviewer | 25857026</li> <li>rayane-djouah | Contributor | 25857028</li> </ul></li> </ul> </details>
Class Component Migration
Filenames
React.ComponentcomponentWillUnmountTask
Upwork Automation - Do Not Edit