Open pomdtr opened 7 months ago
This makes uses of the vt-playground web components.
vt-playground
I found out multiple broken vals while editing the examples, so I updated them.
I would advise to only import fetchJSON in the api examples. Wrapping the logic in other vals makes a lot of example useless. ex:
fetchJSON
import { alias } from "https://esm.town/v/neverstew/alias"; export let aliasExample = alias({ // username: "stevekrouse", });
This example requires you to read the neverstew/alias val, so I converted it to:
neverstew/alias
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON"; console.log(await fetchJSON("https://api.val.town/v1/alias/stevekrouse"));
This makes uses of the
vt-playground
web components.I found out multiple broken vals while editing the examples, so I updated them.
I would advise to only import
fetchJSON
in the api examples. Wrapping the logic in other vals makes a lot of example useless. ex:This example requires you to read the
neverstew/alias
val, so I converted it to: