Closed maccyber closed 4 years ago
Thank you for the PR, @maccyber I will review it asap
I would like to ask you for an explanation of this snippet, @maccyber
value instanceof Function ? value(storedValue) : value;
In which cases value value be an instance of Function?
This PR creates a custom hook that keeps track of hearted mentors. Hearted mentors will be saved to localStorage and restored to state on page refresh.
I also added an
id
key tomentors.json
.