diff --git a/example/preactSSR/router.ts b/example/preactSSR/router.ts index 0d433b23..bf8a125f 100644 --- a/example/preactSSR/router.ts +++ b/example/preactSSR/router.ts @@ -7,7 +7,7 @@ import { ssr, file, } from "../../mod.ts"; //"https://deno.land/x/peko/mod.ts" -import { renderToString } from "preact-render-to-string"; +import { renderToString } from "npm:preact-render-to-string"; // Preact page components and HTML template for ssrHandler render logic import Home from "./src/pages/Home.ts"; diff --git a/example/preactSSR/src/components/App.ts b/example/preactSSR/src/components/App.ts index a46a683e..a65e9326 100644 --- a/example/preactSSR/src/components/App.ts +++ b/example/preactSSR/src/components/App.ts @@ -1,5 +1,5 @@ -import { useState, useEffect } from "preact/hooks"; -import { html } from "htm/preact"; +import { useState, useEffect } from "npm:preact/hooks"; +import { html } from "npm:htm/preact"; import List from "./List.ts"; import { useLocalState } from "../hooks/localstate.ts"; diff --git a/example/preactSSR/src/components/Layout.ts b/example/preactSSR/src/components/Layout.ts index 75152d26..42616375 100644 --- a/example/preactSSR/src/components/Layout.ts +++ b/example/preactSSR/src/components/Layout.ts @@ -1,4 +1,4 @@ -import { html } from "htm/preact"; +import { html } from "npm:htm/preact"; const Layout = ({ navColor, diff --git a/example/preactSSR/src/components/List.ts b/example/preactSSR/src/components/List.ts index d91394ff..c77eb735 100644 --- a/example/preactSSR/src/components/List.ts +++ b/example/preactSSR/src/components/List.ts @@ -1,5 +1,5 @@ -import { useState } from "preact/hooks"; -import { html } from "htm/preact"; +import { useState } from "npm:preact/hooks"; +import { html } from "npm:htm/preact"; const List = ({ data }: { data: string[] }) => { // takes a data prop diff --git a/example/preactSSR/src/hooks/localstate.ts b/example/preactSSR/src/hooks/localstate.ts index 4d1790b5..7e4eb905 100644 --- a/example/preactSSR/src/hooks/localstate.ts +++ b/example/preactSSR/src/hooks/localstate.ts @@ -1,4 +1,4 @@ -import { useState, useEffect } from "preact/hooks"; +import { useState, useEffect } from "npm:preact/hooks"; // INITIAL STATE const initialState: Record = { diff --git a/example/preactSSR/src/pages/About.ts b/example/preactSSR/src/pages/About.ts index 835d5fa9..ae5f1c69 100644 --- a/example/preactSSR/src/pages/About.ts +++ b/example/preactSSR/src/pages/About.ts @@ -1,4 +1,4 @@ -import { html } from "htm/preact"; +import { html } from "npm:htm/preact"; import Layout from "../components/Layout.ts"; import App from "../components/App.ts"; diff --git a/example/preactSSR/src/pages/Home.ts b/example/preactSSR/src/pages/Home.ts index 373b4d33..7df8ab0a 100644 --- a/example/preactSSR/src/pages/Home.ts +++ b/example/preactSSR/src/pages/Home.ts @@ -1,4 +1,4 @@ -import { html } from "htm/preact"; +import { html } from "npm:htm/preact"; import Layout from "../components/Layout.ts";