Comment Comment by satvikpendem It can be for fetching data: https://beta.reactjs.org/learn/you-might-not-need-an-effect#...However most modern frameworks use something like React Query, GraphQL, etc which handles synchronizing local state with remote data for you. parent satvikpendem 3 years ago
However most modern frameworks use something like React Query, GraphQL, etc which handles synchronizing local state with remote data for you.