···23232424## The horrible `UserBookmarks` component 😨
25252626-Disclaimer: we're about to look at a very ugly code that is definetely doing too many things, (FYI it is a simplified version of a component in one of my project). The purpose of the discussion I have is to show to the tech lead that we really want to prevent this to happen and it is her mission to standardize it with her team.
2626+We're about to look at a very ugly code that is definetely doing too many things. The purpose of the discussion I have is to show to the tech lead that we really want to prevent this to happen and it is her mission to standardize it with her team.
27272828As the code does too many things, it can be hard to follow this post, but, I'll try my best to take you with me on this journey.
29293030-Let's say we have a `UserBookmarks` component.
3030+Here is the `UserBookmarks` component:
31313232```tsx
3333interface Props {
···196196197197## Simplification
198198199199-### <OrderTag order={1} /> only necessary property
199199+Once we said all that, let's relook our component.
200200+201201+### <OrderTag order={1} /> only necessary prop
200202201203```tsx
202204interface Props {