Content pfp
Content
@
0 reply
0 recast
0 reaction

Joe Toledano pfp
Joe Toledano
@joetoledano
In your apps, do y'all set up single components as single files or as files within folders? For example: ComponentName.tsx vs. ComponentName -- index.tsx
4 replies
0 recast
2 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
Similar to @matallo.eth mind my mismatched spellcase, I've been too lazy to fix it, but also keep telling myself i have higher priorities
1 reply
0 recast
3 reactions

Carlos Matallín pfp
Carlos Matallín
@matallo.eth
components - ComponentName - ComponentName.tsx - index.ts - index.ts
2 replies
0 recast
3 reactions

df pfp
df
@df
The only good reason to nest in folders is when you have multiple colocated files for the Component (such as ComponentName.scss, or next.js's new layout.ts and route.ts), or you're nesting them to match the file path to the url schema, and need to nest another route within this one. Otherwise simpler not to nest
2 replies
0 recast
2 reactions

Salief pfp
Salief
@salief
Usually single files, but for larger components they are grouped in a folder.
0 reply
0 recast
1 reaction