How to implement service(concept in AngularJS) -like component in React

后端 未结 5 1878
忘掉有多难
忘掉有多难 2021-02-01 17:45

All:

I am pretty new to React from AngularJS. In AngularJS, there is service dependency inject which can provide a service instance to do data fetching, processing, etc

5条回答
  •  太阳男子
    2021-02-01 18:00

    https://medium.com/@alshdavid/react-state-and-services-edb95be48851

    Here's an article showing how to do it with nothing but React Context and rxjs

提交回复
热议问题