Page
This page describes all of the page, offer and add-on methods available within the Limio SDK.
useCampaign - Retrieving details of the current page
useCampaign - Retrieving details of the current pageimport { useCampaign } from "@limio/sdk"
const Component = () => {
const { campaign } = useCampaign()
return (
<section>
<h1>{campaign.name}</h1>
// This can be one you configure
<p>{campaign.attributes.custom_attribute}</p>
</section>
)
}useCampaign - Retrieving offers of the current page
useCampaign - Retrieving offers of the current pageuseCampaign - Retrieving add-ons of the current page
useCampaign - Retrieving add-ons of the current pageuseCampaign - Retrieving the tag the user entered the page with
useCampaign - Retrieving the tag the user entered the page withuseCampaign - Retrieving group values of the current offers on the page
useCampaign - Retrieving group values of the current offers on the page
groupOffers – Grouping offers by label
groupOffers – Grouping offers by labelFunction Signature
Parameters
LimioObject Structure
Return Value
Usage Example
Behaviour Notes
Last updated
Was this helpful?

