https://github.com/ikasoba/deno-jquery-jsx
https://github.com/ikasoba/deno-jquery-jsx
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ikasoba/deno-jquery-jsx
- Owner: ikasoba
- Created: 2023-10-16T06:25:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T06:26:45.000Z (over 1 year ago)
- Last Synced: 2025-02-05T14:46:59.929Z (5 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```