Creating loaders
loaders/
folder of your project.
Create the file DogFactsLoader.ts
in the loaders/
folder of your project. It
will have the same logic as the loader we have created in the previous tutorial,
but we have to remember to define the Props interface and export the loader as
default.
DogFacts.tsx
file in the sections/
folder of your project.