Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Pika to Skypack #11

Merged
merged 1 commit into from
Nov 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ 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](https://pika.dev).
Unfortunately, not all packages currently support this feature. You can search through an entire list of packages through [Skypack](https://www.skypack.dev/).

You can use community created packages to replicate the functionality. For eg. React would be:

```js
import React, { createElement } from "@pika/react";
import ReactDOM from "@pika/react-dom";
import React, { createElement } from "https://cdn.skypack.dev/react";
import ReactDOM from "https://cdn.skypack.dev/react-dom";

ReactDOM.render(
createElement("div", {}, "Hello World"),
Expand All @@ -132,8 +132,8 @@ const App = () => {
const snippet = {
markup: `<div id=app />`,
css: ``,
javascript: `import React, { createElement } from "@pika/react";
import ReactDOM from "@pika/react-dom";
javascript: `import React, { createElement } from "https://cdn.skypack.dev/react";
import ReactDOM from "https://cdn.skypack.dev/react-dom";

ReactDOM.render(
<h1>Hello World</h1>,
Expand Down