The FeatureDescriptor
The entry point: the FeatureDescriptor
, is a simple one for the Unsplash
feature. Here you can see that we only talk about the basic metadata of the
feature, do its initialization in the init()
method, which consists of reading
the environment variables from the .env
file and initializing our
UnsplashStore
.
Finally, we also set up the routes
, which is just going to be a tabbed route.
We’ll see that in the next article.
A note on the metadata
Although it might seem unnecessary, please take your time to specify the metadata for a feature. This helps you to identify this feature in the developer tools and also makes it easier for your team members to know what this feature consists of. In fact, it shows up in the developer tools like the screenshot below. And BTW, having a good icon always helps.