When building a real-time chat application in React, which technology would be most suitable for real-time data updates?
- AJAX
- GraphQL
- REST API
- WebSocket
When building a real-time chat application in React, WebSocket is the most suitable technology for real-time data updates. WebSocket enables full-duplex communication between the client and server, making it ideal for applications that require real-time interactions, such as chat applications. REST API, GraphQL, and AJAX are not designed for real-time updates in the same way WebSocket is.
Loading...
Related Quiz
- What is the primary purpose of a Service Worker in web development?
- A HOC is a function that takes a component and returns a new component, often with ________.
- Which of the following best describes the purpose of the render method in class components?
- When you want a component to accept any type of prop but with certain constraints, you can make use of TypeScript's ________.
- What is the primary benefit of using Web Workers in a React application?