If you have written functional components in React, then you are more than likely to already know some of the built in hooks it offers (like useState, useEffect and useRef). However, it is often common practice to create new hooks by composing these building blocks hooks together. Frustrated with updating…