@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.
Files changed (2) hide show
  1. package/lib/dom.js +14 -1
  2. 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 { useStore, useEffect, createContext, useContext };
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.26",
3
+ "version": "0.2.27-nightly.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,