Skip to content

usePagePublic

The usePagePublic hook lets you easily retrieve the content of a page from React Bricks’ APIs.

Signature

const usePagePublic = (
slug: string,
language?: string
): types.IQueryResult<types.Page>

Usage example

See PageViewer example with usePage