# Third-party packages

## Overview

The HTML Canvas widget supports importing third-party libraries from CDNs. By specifying a CDN URL, you can include third-party libraries written in vanilla JavaScript or React.

## Importing React libraries

To import React libraries into the HTML Canvas widget, the CDN must provide the library in UMD (Universal Module Definition) format. You can identify UMD CDN links by looking for `umd` in the URL path or filename. Sources like unpkg and jsDelivr usually label them as `umd`.

## Example

The following example shows how to import the jQuery library for use in the widget.

Third-party libraries are imported by clicking the *3rd party libraries* option and pasting the library URL there, as shown below:

<figure><img src="/files/qeihixSXova4Te7jgee7" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ubidots.com/dashboards-and-widgets/html-canvas/3rd-party-packages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
