Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ikasoba/deno-jquery-jsx


https://github.com/ikasoba/deno-jquery-jsx

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# deno-jquery-jsx

JQueryをできるかぎり、モダンに書いてみるやつ

遊びで作ったのであまり出来が良くない

## よくあるカウンターの例

```tsx
import { Signal } from "jquery-jsx/mod.ts";

export function Counter() {
const count = new Signal(0);

return (
count.value++}>
count: {count}

);
}
```

```tsx
import { $ } from "jquery-jsx/mod.ts";
import { Counter } from "./counter.tsx";

window.addEventListener("load", () => {
$("body").append();
});
```

## とりあえず適当に遊べるようにするスクリプト

```
deno run -rA https://raw.githubusercontent.com/ikasoba/deno-jquery-jsx/main/init.ts
```