Coding for Notify Hook
Explore the implementation and complete the code for creating your first custom Notify hook.
We'll cover the following...
Getting started
In the previous lesson, two functions were identified as needed as part of the Notify hook.
- A function to show the notification message, called
notifyUser
. - A function to hide the notification message, called
clearNotification
.
Since we are automatically hiding the message after three seconds, clearNotification
can be handled internally and does not need to be exposed outside the hook. Simply, return the notifyUser
...