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

Class Component Migration

Filenames

  • src/components/Picker/Picker.js
    • type: React.PureComponent
    • has state values: true
    • has refs: true
    • has context: false
    • lifecycle methods: componentDidMount,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
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ab92da023f998e29
  • Upwork Job ID: 1678837491382091776
  • Last Price Increase: 2023-07-11

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 50 (31 by maintainers)

Most upvoted comments

While I know that there are many contributors willing to take this, I can also offer my help, with the rationale that I know virtually everything about the Picker component, as I worked with it during solving more than one issue (as Git’s blame will confirm). It has to be ported with care to ensure that it keeps working correctly with the Form logic.