ChatGPT - useState vs useMemo