Skip to main content

Heex React

Installation


// npm
npm install @heex/react

//yarn
yarn add @heex/react

Usage

import { Heex } from '@heex/react';
import "@heex/react/index.css";

<Heex
options={{
clientId: "some-random-string",
clientName: "some-random-string",
apiBaseUrl: "https://api.heex.dev/api/v1", // or use your own apiBaseUrl
}}
pageId={/* this is optional. it's a string.*/}
/>

tip
  • pageId: You can set pageId per page, otherwise, pageId is window.location.pathname by default.