App: [HOLD for payment 2023-08-21] [HOLD][$250] Migrate index.js to function component

Class Component Migration

Filenames

  • src/components/Tooltip/index.js
    • type: React.PureComponent
    • has state values: true
    • has refs: true
    • has context: false
    • lifecycle methods: componentWillUnmount,componentDidUpdate

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
  • Test for any regressions and verify that there are no breaking changes

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25 (9 by maintainers)

Most upvoted comments

@jasperhuangg can you please add Bug label for payment?