0.0.3 • Published 1 year ago

react-canny-io v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

React Canny

Description

Canny.io integration for react

Installation

npm install react-canny

Usage

import {
    CannyProvider,
    CannyWidget
} from "react-canny";


const APP_ID = "/* Your app id */";
const BOARD_TOKEN = "/* Tour token board */";
const SSO_TOKEN = "/* Your sso token */";

const App = () => {
    return (
        <CannyProvider appId={APP_ID}>
            <CannyWidget
              basePath="/feedback"
              user={{
                id: 1,
                email: "test@mail.com"
              }}
              boardToken={BOARD_TOKEN}
              ssoToken={SSO_TOKEN} />
        </CannyProvider>
    );
};
0.0.3

1 year ago