Is there a Standard way to update UI and the DB while thinking about performance?

前端 未结 0 361
孤城傲影
孤城傲影 2020-12-15 16:12

I have 2 ideas :

  1. PUT/POST on server to update item, then do a simple setState({ item: res.data }) to update the UI.

  2. Update the item on the U

相关标签:
回答
  • 消灭零回复
提交回复
热议问题