Instead of using just one file (e.g. chat.tsx) that contains multiple components, place each component (e.g. ChatAction) in a dedicated file and place that file in a suitable folder (e.g. chat/chat-action.tsx).
Advantage: PRs are easier to read as changes are only on the changed components.
Instead of using just one file (e.g.
chat.tsx
) that contains multiple components, place each component (e.g.ChatAction
) in a dedicated file and place that file in a suitable folder (e.g.chat/chat-action.tsx
). Advantage: PRs are easier to read as changes are only on the changed components.