Components

WithHostUrl

WithHostUrl()

Constructor

new WithHostUrl()

This component can be used to get access to the currentHostUrl and primaryHostUrl, as configured within the editor.

Example

import { WithHostUrl } from '@quintype/components';

<WithHostUrl>{({ primaryHostUrl, currentHostUrl }) =>
  <div>
    <div>primaryHostUrl: {primaryHostUrl}</div>
    <div>currentHostUrl: {currentHostUrl}</div>
  </div>
}</WithHostUrl>

View Source components/with-host-url.js, line 42