311-data icon indicating copy to clipboard operation
311-data copied to clipboard

DEV - React Class to Functional Conversions

Open efrenmarin45 opened this issue 1 year ago • 4 comments

Overview

In a continued effort to modernize and optimize the codebase to current React standards, we need to convert all existing classes into functional components.

Action Items

  • [ ] Isolate files where classes are being used
  • [ ] Convert over to functional components
  • [ ] Test for accuracy and debug if necessary. Functionality should stay the same.
  • [ ] Record loading times and compare against current build in main.

Resources

Previous Tickets

  • https://github.com/hackforla/311-data/issues/2015
  • https://github.com/hackforla/311-data/issues/1988
  • https://github.com/hackforla/311-data/issues/1865

efrenmarin45 avatar Sep 08 '25 05:09 efrenmarin45

Fast tracking this to in-progress, since this ticket branches off a related refactor ticket:

  • https://github.com/hackforla/311-data/issues/2015

rayneng avatar Sep 13 '25 22:09 rayneng

@efrenmarin45 can I make a small request that we fix the confusion around src/features/Map.jsx and src/features/index.jsx? Perhaps we can turn Map.jsx into MapContainer.jsx? We call it that in src/pages/Home/index.jsx on line 5 (as of now)

rayneng avatar Sep 13 '25 23:09 rayneng

@ryanfchase Yes, I can make some changes to help demystify the file naming. I'll add it to this existing PR as recommended.

efrenmarin45 avatar Sep 14 '25 17:09 efrenmarin45

Blockers: It is a cascading effect. Converting one class has cascading effects on other files. Working through them. ETA: 9/27/25 Availability: Tuesday evening, Friday evening.

efrenmarin45 avatar Sep 15 '25 02:09 efrenmarin45