26
loading...
This website collects cookies to deliver better user experience
src/
folder and one src/App.tsx
file with an App component.List
, but it also has the ListItem
component, which is not exported.ListItem
from List
and make it its own standalone component inside src/components/List/partials
subdirectory:/components
directory for reusable components.useUser
hook, so we'll create a dedicated hooks
directory and put it in there: hooks
folder is meant for reusable hooks only. If you have a hook that is used by one component only, it should remain in the component's own file (or directory). services
directory and put our service in there:views
. Those views are basically a representation of the url. For example, a directory User
could mean https://<url>/user
and so on.