App: [$250] Migrate Button.js to function component

Class Component Migration

Filenames

  • src/components/Button.js
    • type: React.Component
    • has state values: false
    • has refs: false
    • has context: false
    • lifecycle methods: componentDidMount,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
  • Test for any regressions and verify that there are no breaking changes

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 30 (15 by maintainers)

Most upvoted comments

It just needs a summary @dylanexpensify. Feel free to close it afterward. I will request later.

Thanks for catching that one @parasharrajat - sorry for the delay!

Sounds good. Feel free to get me for the final merge!