@oneblink/apps-react
    Preparing search index...

    Function IsOfflineContextProvider

    • IsOfflineContextProvider is a React Component that provides the isOffline state for components further down your component tree to consume. It should be used to wrap the components requiring the state.

      • This component is required in your component tree to be able to consume the useIsOffline hook.
      import { IsOfflineContextProvider } from '@oneblink/apps-react'
      
      const TopLevelComponent = () => {
        return (
          
            
      ) } export default TopLevelComponent

      Parameters

      • props: { children: ReactNode }

      Returns Element