-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Optimize TagCloud component rendering
The TagCloud component in src/components/TagCloud/TagCloud.tsx has been optimized to improve rendering performance. This change includes the use of the useCallback hook to memoize the renderTags function, resulting in better efficiency when rendering the tags. Additionally, the getTagPosition function has been moved outside the component to improve code organization and readability.
- Loading branch information
Showing
1 changed file
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters