Skip to content

Latest commit

 

History

History
executable file
·
41 lines (27 loc) · 1.21 KB

README.md

File metadata and controls

executable file
·
41 lines (27 loc) · 1.21 KB

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 { createRoot } from 'react-dom/client';
import { TKRoot, TKUITripPlanner } from 'tripkit-react';

const config = {
    apiKey: <MY_TRIPGO_API_KEY>
};

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

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

SDK Reference