Is it possible to show a Spinner while my Word add-in (react app) is loading?
Obviously to use a Spinner you need to compile a React app, so I guess another way of stating the question is: is there a standalone version of the fabric Spinner?
Is it possible to show a Spinner while my Word add-in (react app) is loading?
Obviously to use a Spinner you need to compile a React app, so I guess another way of stating the question is: is there a standalone version of the fabric Spinner?
I think what you need is fabric core.
https://developer.microsoft.com/en-us/fabric#/get-started#core
https://github.com/OfficeDev/office-ui-fabric-core
If it's not there, then there is no standalone spinner and you need to open an issue according to them.
Since React is not loaded yet, I would personally within the
<div id="root">
Add the recommended CSS/HTML. Once React components gets loaded (Downloaded), it will automatically replace the "root" contents.For example:
Your index.tsx would just be: