React with Krpano, What is the best interact way?

  • Hi,

    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?

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

    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*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!