After any action (add or update or delete) on list displayed in react UI, what should be the best approach to display updated list in react.
- Fetch the list again from database
- Since we are modifying the list, that means in the code there will be some variable\state list, which is being used to display that list. Just use that variable\state list, modify it and display from that variable\state list again.
or any other approach?