Constructor
# <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>