This is a simple project that demonstrates how to use the Kontex React SDK.
- Clone the repository
git clone git@github.com:kontextso/sdk-react-demo.git
cd sdk-react-demo- Install dependencies
npm install- Update your publisher token and placement code.
Open src/app/constants.ts and replace the placeholders with your actual publisher token and placement code:
export const PUBLISHER_TOKEN = "<your publisher token>";
export const PLACEMENT_CODE = "<your placement code>";- Run the development server
npm run dev- Open http://localhost:3000 in your browser to see the result.
To learn more about the Kontext React SDK, check out the following resource: