JavaScript / TypeScript
Use Skypack in any JS or TS app
Hello, React!
// 👋 Welcome to Skypack!
// Skypack is a Package Delivery Network (PDN) for everything on npm.
// Load any JavaScript package directly in the browser.
// Try loading the "react" package in the example below.
// When you have something you like, copy the code onto your website!
import * as pkg from 'https://cdn.skypack.dev/react@^16.13.1';
console.log('react loaded:', pkg);Getting Started
Step 1: A Single HTML File
Step 2: Separating the JavaScript
Step 3: Adding More Files, Dependencies
Step 4: Moving to Snowpack for TypeScript, Babel, Sass, etc.
Using Skypack URLs in TypeScript
Using Pinned URLs
Last updated
Was this helpful?