solid-router-deno-vitejs-tailwind Tailwind Templates

Solid Router Deno Vitejs Tailwind

A fork from coolest repo I found in 2024, who solved the puzzle of how to run Solidjs with Router on Deno Runtime:

check it out:

https://github.com/carere/solid-router-deno-vitejs-tailwind

SolidJs example

This example shows how to run Vite and SolidJs with vite-deno-plugin.

To start this example, run:

$ deno task dev

Refer to the ./deno.json for the other tasks.

Available tasks

  • deno task dev: start dev server
  • deno task build: build for production
  • deno task preview: preview production build

How to add a dependency

Just add the dependency to imports field in deno.json.

{
  "imports": {
    "@solidjs/router": "https://esm.sh/@solidjs/[email protected]"
  }
}

And import it.

import { Route, Routes } from "@solidjs/router";

Or you can import from URL directly.

import { Route, Routes } from "https://esm.sh/@solidjs/[email protected]";

Top categories

Loading Svelte Themes