nesquick 0.0.8 → 0.0.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.
@@ -39,9 +39,14 @@ class NesquickElement {
39
39
  for (const k in props) {
40
40
  if (k !== "children") {
41
41
  if (typeof props[k] === "function") {
42
- (0, State_1.useRender)(props[k], v => {
43
- element.setAttribute(k, String(v));
44
- });
42
+ if (k.startsWith("on")) {
43
+ element[k.toLowerCase()] = props[k];
44
+ }
45
+ else {
46
+ (0, State_1.useRender)(props[k], v => {
47
+ element.setAttribute(k, String(v));
48
+ });
49
+ }
45
50
  }
46
51
  else {
47
52
  element.setAttribute(k, String(props[k]));
@@ -17,10 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.jsxDEV = jsxDEV;
18
18
  const jsx_runtime_1 = require("./jsx-runtime");
19
19
  __exportStar(require("./jsx-runtime"), exports);
20
- function jsxDEV(type, props, key, _isStaticChildren, source, self) {
21
- return (0, jsx_runtime_1.jsx)(type, {
22
- ...props,
23
- __source: source,
24
- __self: self
25
- }, key);
20
+ function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
21
+ return (0, jsx_runtime_1.jsx)(type, props, key);
26
22
  }
@@ -6,4 +6,4 @@ type JsxSource = {
6
6
  lineNumber: number;
7
7
  columnNumber?: number;
8
8
  };
9
- export declare function jsxDEV<P extends Props>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key: string | number | null, _isStaticChildren: boolean, source: JsxSource, self: any): import("./NesquickFragment").NesquickFragment | import("./NesquickElement").NesquickElement<P>;
9
+ export declare function jsxDEV<P extends Props>(type: string | FunctionComponent<P> | typeof Fragment, props: P, key: string | number | null, _isStaticChildren: boolean, _source: JsxSource, _self: any): import("./NesquickFragment").NesquickFragment | import("./NesquickElement").NesquickElement<P>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nesquick",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "React-like library with focus on drawing performance",
5
5
  "types": "./lib/types",
6
6
  "main": "./lib",