You are building a React application that needs to work offline. Which technology would you leverage to allow the app to function without an internet connection?

  • GraphQL
  • REST APIs
  • Service Workers
  • WebSockets
To make a React application work offline, you would leverage Service Workers. Service Workers enable caching of assets and allow the app to function without an internet connection by serving cached content when offline. WebSockets, REST APIs, and GraphQL are not primarily designed for offline functionality but rather for real-time communication and data retrieval.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *