Use pannellum-react to render 360 image/video, check the github page for the documantation.
Sine pannellum-react use pannellum under the hook, look for Pannellum document for furthermore explanation.
Although pannellum-react support both 360 image and video. This package only deal with images (for now).