What do you call the group of files associated with a React component?

Viewed 19

For 2 years now, my team at work has adopted the practice of organizing React files in a very organized way. Here's one small example:

  • src
    • components
      • basic
        • Button
          • Button.tsx
          • Button.module.scss
          • Button.test.ts
          • index.ts

We've been calling the Button folder above a "bundle" or "React component bundle" but in conversation with some folks today, they said they had not heard this team in this context before.

Is there a better term that many use?

Robert

0 Answers
Related