Запитання 5
To efficiently handle real-time chat updates in a React Native app, which technology stack and handling approach is recommended?
Варіанти відповідей
Use WebSockets (e.g., socket.io-client or Firebase Realtime Database) connected in useEffect with event listeners, debounce indicators, and proper cleanup
Refresh the entire chat screen every minute
Use REST API polling every second
Send chat messages as SMS via a third-party service