TripKit SDK for React

This is the documentation of TripKit React, the React SDK for the TripGo API.


npm install tripkit-react


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'));

  <TKRoot config={config}>
    <TKUITripPlanner />