Overview
General
Simple components:
π Component file
Complex components:
π Component folder (see related Naming section)
π _components (optional)
π _lib (optional)
π Component file
π index.ts
Reusable Components
Storybookized
Location:
~/components/_storybook/...
Components that have gone through the step of creating "stories"
UI documentation & testing
Non-Storybookized
Location:
~/components/...
Database-related Component Folders
Location:
~/components/database/...
Contents:
π _config.ts
π _lib
π useMutations.ts
π context.ts (optional)
π _components
(base/template components -- CRUD buttons, FormCRUD, Table, etc.)
Local Components
Location:
.../_components/...
All non-reusable, non-database-related components should ultimately exist within an
_components
folder, which may be located within a component folder, in a "route" folder, etc.
Last updated