App: [HOLD for payment 2023-07-06] [$250] Migrate ImageWithSizeCalculation.js to function component
Class Component Migration
Filenames
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/~019290e3ea81f50f59
- Upwork Job ID: 1664694167941718016
- Last Price Increase: 2023-06-02
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 30 (20 by maintainers)
@conorpendergrast @NikkiWines, we can assign @getusha as they have no pending issues assigned right now.
π π π C+ reviewed
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one π
PR is up! @0xmiroslav
@getusha Thanks great thread!
Here is my proposal
Proposal : Migrate
ImageWithSizeCalculation.jsto function component #16167Please re-state the problem that we are trying to solve in this issue.
Problem : Migrate
ImageWithSizeCalculation.jsto function component #16167What is the root cause of that problem?
The root cause of the problem is that most of the things written are in class based which needs to be converted into function based as the updated ReactJS syntax.
What changes do you think we should make in order to solve the problem?
Before This is class based code:
After (new function based code):
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Making this one External as per https://expensify.slack.com/archives/C01GTK53T8Q/p1685727842949549