Yes you can absolutely use React to create an overlay of UI while keeping the canvas on the background where you use just pixi + matter to run your game. You just need a layer of communications between the 2, nothing fancy, custom events would work fine for simple games