@unsetsoft/ryunixjs 0.4.15-nightly.13 → 0.4.15-nightly.14
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/dist/Ryunix.js +13 -3
- package/package.json +1 -1
- package/src/lib/createElement.js +12 -2
package/dist/Ryunix.js
CHANGED
|
@@ -101,9 +101,19 @@
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const Fragments = ({ children }) => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
/*
|
|
105
|
+
children: [
|
|
106
|
+
{
|
|
107
|
+
type: "button",
|
|
108
|
+
props: []
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
children.map((c, index) => {
|
|
114
|
+
const newElement = createElement(c.type, c.props, ...c.props.children);
|
|
115
|
+
console.log(newElement, children);
|
|
116
|
+
});
|
|
107
117
|
};
|
|
108
118
|
|
|
109
119
|
/**
|
package/package.json
CHANGED
package/src/lib/createElement.js
CHANGED
|
@@ -61,8 +61,18 @@ const createTextElement = (text) => {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
const Fragments = ({ children }) => {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
/*
|
|
65
|
+
children: [
|
|
66
|
+
{
|
|
67
|
+
type: "button",
|
|
68
|
+
props: []
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
children.map((c, index) => {
|
|
74
|
+
const newElement = createElement(c.type, c.props, ...c.props.children)
|
|
75
|
+
console.log(newElement, children)
|
|
66
76
|
})
|
|
67
77
|
}
|
|
68
78
|
|