Creating a todo app using react