Hey guys, let me share my library for using React with KRPano in an easy way.
Npm: https://www.npmjs.com/package/react-krpano-hooks
Demo: https://shinenic.github.io/react-krpano-hooks/#/
Hope this will help people who is familiar with React and want to build a website with KRPano in a quick way,
with React, we can handle the state(loading, scene change...) from JS and toggle some DOM to improve the UX, build a SPA(single page application) simply, and also we can get or compute some variables without learning new language in KRPano's API in most cases (sometimes I got stuck on this lol)
so please feel free to give your comments or leave issue on my GitHub,
thanks!
KRPano with React library (react-krpano-hooks)
-
-
Hi, Thanks very much for sharing!!!
Any example for saving changes in tour.xml?
Greets,
Fdo -
Hi, Thanks very much for sharing!!!
Any example for saving changes in tour.xml?
Greets,
FdoHello Fdo,
Thanks for your reply,
this library can't edit tour.xml directly, but I have a fully document in the link for all the necessary settings. -
Ok, thanks very much.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!