@xwadex/fesd-next 0.1.64 → 0.1.66

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.
@@ -1,14 +1,13 @@
1
- "use strict";
2
1
  "use client";
2
+ "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MyClientComponent = MyClientComponent;
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var react_1 = require("react");
7
- function MyClientComponent(_a) {
8
- var name = _a.name;
9
- var _b = (0, react_1.useState)(0), state = _b[0], setstate = _b[1];
10
- (0, react_1.useEffect)(function () {
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ function MyClientComponent({ name }) {
8
+ const [state, setstate] = (0, react_1.useState)(0);
9
+ (0, react_1.useEffect)(() => {
11
10
  console.log('hello!');
12
11
  }, []);
13
- return (0, jsx_runtime_1.jsxs)("div", { children: ["This is the component, name :", (0, jsx_runtime_1.jsx)("span", { children: name !== null && name !== void 0 ? name : "empty" }), (0, jsx_runtime_1.jsx)("span", { children: state }), (0, jsx_runtime_1.jsx)("button", { onClick: function () { return setstate(function (prev) { return prev + 1; }); }, children: "+" })] });
12
+ return (0, jsx_runtime_1.jsxs)("div", { children: ["This is the component, name :", (0, jsx_runtime_1.jsx)("span", { children: name ?? "empty" }), (0, jsx_runtime_1.jsx)("span", { children: state }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setstate(prev => prev + 1), children: "+" })] });
14
13
  }
@@ -1,11 +1,11 @@
1
- "use strict";
2
1
  "use client";
2
+ "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MyClientComponent2 = MyClientComponent2;
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var react_1 = require("react");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
7
  function MyClientComponent2() {
8
- (0, react_1.useEffect)(function () {
8
+ (0, react_1.useEffect)(() => {
9
9
  console.log('hello!');
10
10
  }, []);
11
11
  return (0, jsx_runtime_1.jsx)("div", { children: "This is the component" });
package/client/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
1
  "use client";
2
+ "use strict";
3
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "main": "./index.js",
5
5
  "files": ["./"],
6
6
  "exports": {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MyComponent = MyComponent;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  function MyComponent() {
6
6
  return (0, jsx_runtime_1.jsx)("div", { children: "This is the component" });
7
7
  }