title: Commonly API call for different components in ReactJS Fetch
body: <p>I'm new to reactJS. How to commonly maintain fetch for all API call in one place. Only change URL and query string through passing parameter and get return data.
  LIKE THIS =>(In angular they maintained API in service.ts and make the call from component.ts and subscribe the return data.)</p>