I\'ve done some research into fixing the classic "Invalid Hook Call" issue. Below is a summary of the setup. Please note this is sample code to show what\'s releva