Inelukas / pet-app

https://pet-app-pied.vercel.app
5 stars 1 forks source link

CSS Refactoring #59

Open Inelukas opened 2 months ago

Inelukas commented 2 months ago

Value proposition As a developer I want to refactor and organize all styled components into separate files In order to improve code maintainability and readability

Description

Refactor all existing styled components into individual files.

Acceptance criteria

Tasks

F-Kirchhoff commented 1 month ago

The user story looks good to me, however, it might not be the best move to separate your styled components from the component they are used in. Separating things just so that "the css is in another file" can add unnecessary complexity to your project. JS and HTML are no longer separated in React, so why should CSS be stored in a different file? The true separation of concerns lies between different components. Keep this a thought and decide for yourself if you want .styled.js files or not. In the end its a matter of taste, but both ways are valid and equally professional.