This article will be based on this source code and will provide an in-depth explanation of how React hooks work.
I used @swyx's article Getting Closure on React Hooks as a guide for my implementation.