How to create reusable method to handle API returning single object getByID and array of objects by getAll in react

前端 未结 0 675
广开言路
广开言路 2020-11-30 02:43

I have react application where data is fetched byId or getAll. Currently I have return component which map over array of object and display details, I want to use same compo

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