DEV - React Class to Functional Conversions
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
Fast tracking this to in-progress, since this ticket branches off a related refactor ticket:
- https://github.com/hackforla/311-data/issues/2015
@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)
@ryanfchase Yes, I can make some changes to help demystify the file naming. I'll add it to this existing PR as recommended.
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.