@koobiq/react-core 0.0.1-beta.4 → 0.0.1-beta.6

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,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useCallback } from "react";
2
3
  function useBoolean(defaultValue = false) {
3
4
  const [value, setValue] = useState(defaultValue);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useRef, useImperativeHandle } from "react";
2
3
  function useDOMRef(ref) {
3
4
  const domRef = useRef(null);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useLayoutEffect, useEffect } from "react";
2
3
  import { isBrowser } from "../../utils/isBrowser.js";
3
4
  const useIsomorphicEffect = isBrowser() ? useLayoutEffect : useEffect;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useRef, useEffect } from "react";
2
3
  function usePrevious(value) {
3
4
  const ref = useRef(null);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { useState, useEffect } from "react";
2
3
  import { isBrowser } from "../../utils/isBrowser.js";
3
4
  const useSsr = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koobiq/react-core",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.6",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {