@unsetsoft/ryunixjs 0.2.8-nightly.0 → 0.2.8-nightly.2
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 +4 -10
- package/lib/main.js +1 -1
- package/package.json +1 -1
package/lib/dom.js
CHANGED
|
@@ -236,6 +236,7 @@ let containerRoot = null;
|
|
|
236
236
|
* root or container for a web application or component. The `createRoot` function takes this element
|
|
237
237
|
* as an argument and assigns it to a variable called `containerRoot`. This variable can then be used
|
|
238
238
|
* to manipulate the contents
|
|
239
|
+
* @example Ryunix.init(document.getElementById("root");)
|
|
239
240
|
*/
|
|
240
241
|
function createRoot(root) {
|
|
241
242
|
containerRoot = root;
|
|
@@ -512,18 +513,11 @@ function useEffect(effect, deps) {
|
|
|
512
513
|
|
|
513
514
|
// export
|
|
514
515
|
|
|
515
|
-
export {
|
|
516
|
-
// Main functions
|
|
517
|
-
createElement,
|
|
518
|
-
render,
|
|
519
|
-
createRoot,
|
|
520
|
-
init,
|
|
521
|
-
// Hooks
|
|
522
|
-
useStore,
|
|
523
|
-
useEffect,
|
|
524
|
-
};
|
|
516
|
+
export { useStore, useEffect };
|
|
525
517
|
|
|
526
518
|
export default {
|
|
527
519
|
createElement,
|
|
528
520
|
render,
|
|
521
|
+
createRoot,
|
|
522
|
+
init,
|
|
529
523
|
};
|
package/lib/main.js
CHANGED