0.0.2 • Published 4 years ago

cloudtables-react v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

CloudTables React

CloudTables React is a react component that adds custom HTML tags <cloud-tables></cloud-tables> to your React application. These tags replace the script tags that are used to import your cloud table into an HTML document. If you do not already have a cloud table to import see CloudTables to create an account.

Getting Started

Inside the directory of your React application that you created using:

create-react-app newExampleApp

run:

npm install -save cloudtables-react

After npm has finished installing. Change your App.js file in /src/ include

import CloudTables from "cloudtables-react";

Once those changes are made you can now use the custom could tables tags <cloud-tables></cloud-tables>

Here is an example tag

<cloud-tables
  src="https://ct-examples.cloudtables.io/loader/4e9e8e3c-f448-11eb-8a3f-43eceac3195f/table/d"
  apiKey="AzG0e04UxhduaTAJjYC3Dgfr"
></cloud-tables>
  • src The custom url for your CloudTable.
  • apiKey would be replaced by your API Key (see the Security / API Keys section in your CloudTables application)
  • token server side generated secure access token that can be used instead of an apiKey
  • userId is optional, but will be used to uniquely identify user's in the CloudTables interface.
  • userName is also optional, but can be used to help identify who made what changes when reviewing logs in CloudTables. It is recommended you include userId and userName.

All the data values required can be found in your CloudTables application.