Available component props the app can receive and use.
For more information, please see documentation
useZoidPropsUpdater
React hook to manage props from the container and pass them to ZoidPropsContext
Example
import{ useZoidPropsUpdater }from'@bit/equipmentshare.global.libs.zoid-helper';// pass in your window.xprops hereconst pluginProps =useZoidPropsUpdater(containerProps);
ZoidPropsContext
Share the zoid props from the container to your components downstream
Example
importReactfrom'react';import{ useZoidPropsUpdater,ZoidPropsContext}from'@bit/equipmentshare.global.libs.zoid-helper';constApp=(props)=>{const pluginProps =useZoidPropsUpdater(props);return(<ZoidPropsContext.Providervalue={pluginProps}>
Contents here
</ZoidPropsContext.Provider>);}// window.xprops is a global variable populated by Zoidexportdefault(<App{...window[`xprops`]}/>)