- Filename: Use PascalCase for filenames. E.g.,
ReservationCard.jsx
. Component Naming: Use the filename as the component name. For example,
ReservationCard.jsx
should have a reference name of . However, for root components of a directory, useindex.jsx
as the filename and use the directory name as the component name: