Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikasoba/deno-jquery-jsx
https://github.com/ikasoba/deno-jquery-jsx
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ikasoba/deno-jquery-jsx
- Owner: ikasoba
- Created: 2023-10-16T06:25:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T06:26:45.000Z (about 1 year ago)
- Last Synced: 2024-10-24T06:07:24.609Z (2 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
```