1. Use Fetch API to get data from local JSON resource and hydrate a component. 2. Call an external API endpoint to get data for a component.