ChatGPT - React Local Storage Hook