You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



  • "Kabkee" started this thread

Posts: 90

Location: South Korea

Occupation: South Korea

  • Send private message


Wednesday, January 18th 2017, 3:25am

React with Krpano, What is the best interact way?


I'm developing Web site with React library (from Facebook) embeding Krpano in it.
However, it's not easy to interact within components with Krpano interface.

What do you think the best way to interact between them?

Do I have set another functions outside of reacts?
Are there any ones who have such experience?


Thursday, May 4th 2017, 2:41pm

I have it working in React by having the krpano container outside the React app container.

Source code

<div id="app"></div><div id="pano"></div>

When calling the embedpano method it loads the 360 video / photo.

I only have an issue with my single page application. When I route to the next page having the 360 video it gives a "FATAL ERROR: LICENSE ERROR - WRONG DOMAIN". When I refresh the page it does work without error.

Trying a quick and dirty workaround by reloading the page once, but a more solid solution is appreciated *g*