WoWAnalyzer / WoWAnalyzer

WoWAnalyzer is a tool to help you analyze and improve your World of Warcraft raiding performance through various relevant metrics and gameplay suggestions.
http://wowanalyzer.com/
GNU Affero General Public License v3.0
515 stars 593 forks source link

Convert React class components to functional components #3800

Open MartijnHols opened 3 years ago

MartijnHols commented 3 years ago

To improve maintainability and ease of development, we would like to convert all React class component to functional components. Helping with this does not require any WoW or spec knowledge. Just pick a random React class component and convert it to a functional component. When doing this, please also consider #3799 as TS Props are much cleaner than propTypes.

Reimplement state and other methods using hooks.

When converting components that use the Redux or react-router HOCs, please consider using hooks instead.

A guide: https://www.digitalocean.com/community/tutorials/five-ways-to-convert-react-class-components-to-functional-components-with-react-hooks (but please use arrow-function based functional components instead)

japser36 commented 1 year ago

Hi, I'd love to contribute to this as my first dabble into open source :) I have professional experience with react and specifically updating components from class based to functional, as my previous project required a lot of this kind of migration. I'll see what I can do!