Recently we've been informed that we would be implementing new components for our product using ReactJs for future plans related reasons. However, we would depend on WebView2 in order to render these components within the current WPF App.
One of the challenges that we've faced is how to achieve two-way communication between the react component and the WPF App.
My team thought about using SignalR as a Mediator between the host and the component to achieve the communication, but not sure if this is the best solution in this case.
Yes, there is a facility provided by the WebView2 to invoke scripts against the component but this would achieve a one-way communication from the WPF App to the react component.
So what is needed now is how to achieve the vice-versa, Invoking something from the react component against the WPF App. Is there are any better solutions for this case?