Playground is a React Component that can be used for demonstrating HTML, CSS and JavaScript code.
If an NPM package exposes an endpoint for "module", then you can direcly import this package by it's name.
import { format } from "date-fns";
format(new Date(2014, 1, 11), "yyyy-MM-dd");
Unfortunately, not all packages currently support this feature. You can search through an entire list of packages through pika.dev.
You can use community created packages to replicate the functionality. For eg. React would be:
import React, { createElement } from "@pika/react";
import ReactDOM from "@pika/react-dom";
ReactDOM.render(
createElement("div", {}, "Hello World"),
document.getElementById("app"),
);