-
Improvement
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
None
-
City
Problem:
The React components used on the bookbrainz are of both class and functional types. In React, both class components and functional components are used to create UI elements. However, with the introduction of React Hooks, functional components have become much more powerful and flexible, and they can now do everything that class components can do.
Functional components are generally preferred over class components for several reasons:
- Simplicity and readability
- Performance
- Easier to test
- Better compatibility with hooks:
Note: There are a lot of class components. Please consider creating a sub task.
1.
|
Refactor achievement component into functional | Closed | Meziyum | |
2.
|
Refactor drag-and-drop.js | In Development Branch | Meziyum | |
3.
|
Refactor drag-and-drop-image | Closed | Meziyum |