ita-social-projects / SpaceToStudy-Client

MIT License
22 stars 14 forks source link

(SP: 0.5) Refactor Code: Simplify React Component by Extracting Function #2418

Closed Olenka-Hryk closed 1 month ago

Olenka-Hryk commented 2 months ago

Refactor Code: Simplify React Component by Extracting Function

This issue aims to simplify the React component by extracting a function that was previously defined inside the component and moving it to the top level of the file. This change eliminates the need to use useCallback, making the code more concise and easier to maintain.