React on added todo items by updating UI