@unsetsoft/ryunixjs 0.2.26 → 0.2.27-nightly.0
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/lib/dom.js +14 -1
- package/package.json +1 -1
package/lib/dom.js
CHANGED
|
@@ -445,6 +445,12 @@ function createContext(defaultValue) {
|
|
|
445
445
|
return context;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
+
const FRAGMENT_SYMBOL = Symbol.for("ryunix.fragments");
|
|
449
|
+
|
|
450
|
+
function Fragments(props) {
|
|
451
|
+
return props.children;
|
|
452
|
+
}
|
|
453
|
+
|
|
448
454
|
// Hooks
|
|
449
455
|
|
|
450
456
|
/**
|
|
@@ -559,11 +565,18 @@ function useEffect(effect, deps) {
|
|
|
559
565
|
|
|
560
566
|
// export
|
|
561
567
|
|
|
562
|
-
export {
|
|
568
|
+
export {
|
|
569
|
+
useStore,
|
|
570
|
+
useEffect,
|
|
571
|
+
createContext,
|
|
572
|
+
useContext,
|
|
573
|
+
FRAGMENT_SYMBOL as Fragments,
|
|
574
|
+
};
|
|
563
575
|
|
|
564
576
|
export default {
|
|
565
577
|
createElement,
|
|
566
578
|
render,
|
|
567
579
|
createRoot,
|
|
568
580
|
init,
|
|
581
|
+
Fragments,
|
|
569
582
|
};
|