TripKit SDK for React

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

Installation

npm install tripkit-react

Usage

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

import React from 'react';
import ReactDOM from 'react-dom';
import {TKRoot, TKUITripPlanner} from 'tripkit-react';

const config = {
    apiKey: <MY_TRIPGO_API_KEY>
};

ReactDOM.render(
    <TKRoot config={config}>
        <TKUITripPlanner/>
    </TKRoot>, document.getElementById('root'));