Building a realtime to-do app using React Hooks