tripkit-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.6 • Public • Published

TripGo API TripKit SDK for React

The React SDK for the TripGo API.

Installation

npm install tripkit-react

Usage

Get a TriGo API key and pass it to the TKRoot component through the config object.

import React from 'react';
import ReactDOM from 'react-dom/client';
import 'reflect-metadata';  // Important: Polyfill for Metadata Reflection API
import { TKRoot, TKUITripPlanner } from 'tripkit-react';

const config = {
    apiKey: <MY_TRIPGO_API_KEY>
};

const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(
  <TKRoot config={config}>
    <TKUITripPlanner />
  </TKRoot>);

SDK Reference

Package Sidebar

Install

npm i tripkit-react

Weekly Downloads

11

Version

1.0.0-rc.6

License

MIT

Unpacked Size

8.17 MB

Total Files

1232

Last publish

Collaborators

  • skedgo