In this section, we will work on our React frontend so that we can interact with the SignalR real-time API we have just built. We will make changes to the question page so that we can subscribe to new answers for the question on the page. We will use Postman to post an answer to the question and hopefully receive the updated question in our React frontend.
Interacting with the SignalR real-time API from React
Installing the SignalR client
Let's open our React frontend project in Visual Studio Code and install the SignalR client. Enter the following command in the Terminal:
> npm install @aspnet/signalr
Check the version of the @aspnet/signalr package in package.json. If it is before version 3, then run the following...