Getting Started
Simple steps to get you started using the Limio SDK.
Install the Limio SDK
$ npm install --save @limio/sdk
OR
$ yarn add @limio/sdkimport React from "react"
import { useCampaign } from "@limio/sdk"
const Offers = () => {
const { offers } = useCampaign()
return (
<section>
{offers.map(offer => (
<div>
<h1>{offer.name}</h1>
<button onClick={() => {
// Actually adding items to the basket will be covered later on.
console.log("Adding to basket")
}}>
Add to basket
</button>
</div>
))}
</section>
)
}Note about your development environment
Methods
BasketPageUserAdvanced MethodsLast updated
Was this helpful?

