kt.js 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/jsx-runtime.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,6 +16,16 @@ Main entry package for KT.js framework - a simple and easy-to-use web framework
|
|
|
16
16
|
pnpm add kt.js
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
## JSX is now Supported!!
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { ref } from 'kt.js';
|
|
23
|
+
const myDivRef = ref<HTMLDivElement>();
|
|
24
|
+
const myElement = <div ref={myDivRef}>Hello, KT.js with JSX!</div>;
|
|
25
|
+
|
|
26
|
+
// Now myDivRef.value points to the created div element
|
|
27
|
+
```
|
|
28
|
+
|
|
19
29
|
## What's Included
|
|
20
30
|
|
|
21
31
|
This package re-exports everything from:
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"@ktjs/core";export{h as createElement,h}from"@ktjs/core";function e(e,n,...o){const r="string"==typeof n?{class:n}:n;if(null==r)return t(e);const c=r.children;delete r.children;const s=t(e,r,c);return"ref"in r&&"object"==typeof r.ref&&null!==r.ref&&(r.ref.value=s),s}function n(t){window.__ktjs__.throws("kt.js doesn't have a Fragment concept")}const o=e,r=e;export{n as Fragment,e as jsx,o as jsxDEV,r as jsxs};
|
|
1
|
+
import{h as t}from"@ktjs/core";export{h as createElement,h}from"@ktjs/core";function e(e,n,...o){const r="string"==typeof n?{class:n}:n;if(null==r)return t(e);const c=r.children;delete r.children;const s=t(e,r,c);return"ref"in r&&"object"==typeof r.ref&&null!==r.ref&&(r.ref.value=s,delete r.ref),s}function n(t){window.__ktjs__.throws("kt.js doesn't have a Fragment concept")}const o=e,r=e;export{n as Fragment,e as jsx,o as jsxDEV,r as jsxs};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kt.js",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kasukabe Tsumugi",
|
|
6
6
|
"email": "futami16237@gmail.com"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@ktjs/core": "0.6.6",
|
|
45
|
-
"@ktjs/
|
|
46
|
-
"@ktjs/
|
|
45
|
+
"@ktjs/shortcuts": "0.6.6",
|
|
46
|
+
"@ktjs/jsx": "0.6.10"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "rollup -c rollup.config.mjs",
|