Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Code Quality: Refactor all React class components to functional components using hooks | GoodFirstPicks

Code Quality: Refactor all React class components to functional components using hooks

WordPress/gutenberg 52 comments 6d ago
View on GitHub
lowopenScope: clearSkill match: yesWordPressJavaScriptReact

Why this is a good first issue

Refactoring class components to functional components is straightforward but requires attention to detail.

AI Summary

The issue involves refactoring React class components to functional components using hooks, which is a common task for improving code quality. The task is well-defined and suitable for junior contributors, but care must be taken to avoid introducing bugs.

Issue Description

The official recommendation for writing React components is as follows.

All components should be implemented as function components, using hooks for managing component lifecycle and state.

If you're a new/junior contributor looking to help with this refactoring, follow these steps:

  • Search for class components on the codebase (For example by searching extends Component
  • Pick a component to refactor.
  • Comment on this issue saying that you're working on the said component.

Note This is a tracking issue for the React components guidelines. This issue is tailored specifically for junior and new contributors. Experienced contributors shouldn't do big refactorings unless they update the code for another reason (bug fix, feature).

GitHub Labels

Good First Issue[Status] In Progress[Type] Code Quality[Package] Components[Type] Tracking Issue

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • potential for breaking changes if not done carefully
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchyes
Test Focusedno