You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,46 @@ English | [Korean](./README-ko_kr.md)
10
10
-`react-simplikit` guarantees reliability with 100% test coverage.
11
11
-`react-simplikit` offers JSDoc comments, detailed documentation, and examples to ensure any developer can easily use it.
12
12
13
+
## Library Direction
14
+
15
+
**react-simplikit is now maintained as a Universal Hook Library providing only pure state/logic hooks.**
16
+
17
+
We are repositioning react-simplikit to focus exclusively on **platform-independent hooks** that work seamlessly across web and mobile (React Native, etc.).
18
+
19
+
### What's Maintained: Pure State/Logic Hooks
20
+
21
+
Hooks that don't depend on specific platform APIs will continue to be actively maintained:
22
+
23
+
- State management hooks like `useToggle`, `useBooleanState`, `useCounter`
24
+
- Lifecycle hooks like `usePrevious`, `useMount`
25
+
- Utility hooks like `useDebounce`, `useThrottle`
26
+
-**Backward compatibility (BC) is preserved** for these existing pure logic hooks
Copy file name to clipboardExpand all lines: src/docs/en/intro.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,20 @@ How can we build React-based applications more safely and reliably? We defined t
4
4
5
5
`react-simplikit` is a lightweight yet powerful library that provides various useful tools in React environments. It is designed to respect React's design principles while improving the React development experience.
6
6
7
+
## Library Direction
8
+
9
+
**react-simplikit is now maintained as a Universal Hook Library providing only pure state/logic hooks.**
10
+
11
+
We are repositioning react-simplikit to focus exclusively on **platform-independent hooks** that work seamlessly across web and mobile (React Native, etc.). Network-intensive, browser API-dependent, and DOM-coupled features are no longer part of react-simplikit's scope.
12
+
13
+
### What's Maintained
14
+
15
+
Hooks that don't depend on specific platform APIs will continue to be actively maintained, such as state management hooks (`useToggle`, `useBooleanState`), lifecycle hooks (`usePrevious`), and utility hooks (`useDebounce`, `useThrottle`). Backward compatibility is preserved for these pure logic hooks.
16
+
17
+
### What's Deprecated
18
+
19
+
Browser/platform-dependent hooks like `useGeolocation`, `useStorageState`, `useIntersectionObserver`, `useImpressionRef`, `useDoubleClick`, `useLongPress`, `useOutsideClickEffect`, and `useVisibilityEvent` are now deprecated. These hooks will not receive new features and may be removed in future major versions.
20
+
7
21
## More Intuitive and Familiar Interface
8
22
9
23
We provide a development experience as similar as possible to using React's declarative API. Write less and do more, more easily.
Copy file name to clipboardExpand all lines: src/docs/ko/intro.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,23 @@
1
1
# react-simplikit 소개
2
2
3
-
어떻게 하면 React 기반 앱을 좀 더 안전하고 탄탄하게 만들 수 있을까? 우리는 그 답을 ‘리액트를 리액트답게’ 작성하는 것이라고 정의했고, `react-simplikit`으로 그 답을 구체화했어요.
3
+
어떻게 하면 React 기반 앱을 좀 더 안전하고 탄탄하게 만들 수 있을까? 우리는 그 답을 '리액트를 리액트답게' 작성하는 것이라고 정의했고, `react-simplikit`으로 그 답을 구체화했어요.
4
4
5
5
`react-simplikit`은 React 환경에서 유용하게 사용할 수 있는 다양한 도구들을 제공하는 가볍고 강력한 라이브러리예요. React의 설계 원칙을 존중하면서 동시에, React의 개발 경험을 개선하기 위해 설계되었어요.
6
6
7
+
## 라이브러리 운영 방향
8
+
9
+
**react-simplikit은 이제 완전히 순수한 상태/로직 훅만을 위한 Universal Hook Library로 유지됩니다.**
10
+
11
+
react-simplikit은 웹/앱(React Native 등) 어디서든 동작 가능한, **플랫폼에 종속되지 않은 순수 상태/로직 훅만을 제공하는 라이브러리**로 재편됩니다. 네트워크, 브라우저 API, DOM 등에 강하게 결합된 기능은 더 이상 react-simplikit의 관심사가 아니에요.
12
+
13
+
### 유지되는 것
14
+
15
+
특정 플랫폼 API에 의존하지 않는 순수 로직 기반 훅들은 계속 제공돼요. 상태 관리 훅(`useToggle`, `useBooleanState`), 라이프사이클 훅(`usePrevious`), 유틸리티 훅(`useDebounce`, `useThrottle`) 등이 해당되며, 기존 프로젝트의 Backward Compatibility는 보존돼요.
16
+
17
+
### Deprecated 되는 것
18
+
19
+
`useGeolocation`, `useStorageState`, `useIntersectionObserver`, `useImpressionRef`, `useDoubleClick`, `useLongPress`, `useOutsideClickEffect`, `useVisibilityEvent` 같은 브라우저/플랫폼 의존 훅들은 Deprecated 처리돼요. 이 훅들은 새 기능을 추가하지 않으며, 장기적으로는 메이저 버전 업데이트에서 제거를 검토할 수 있어요.
20
+
7
21
## 더 직관적이고 익숙한 인터페이스
8
22
9
23
React의 선언적인 API를 사용할 때와 최대한 유사한 개발 경험을 제공해요. 더 적게 쓰고, 더 많은 것들을 더 직관적으로 구현해 보세요.
Copy file name to clipboardExpand all lines: src/hooks/useImpressionRef/useImpressionRef.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@ export type UseImpressionRefOptions = Partial<{
14
14
}>;
15
15
16
16
/**
17
+
* @deprecated This hook is deprecated as it depends on browser-specific APIs (IntersectionObserver, Visibility API).
18
+
* react-simplikit is now focused on platform-independent, pure state/logic hooks.
19
+
* This hook will be removed in a future major version.
20
+
*
17
21
* @description
18
22
* `useImpressionRef` is a React hook that measures the time a specific DOM element is visible on the screen and executes callbacks when the element enters or exits the viewport.
19
23
* It uses `IntersectionObserver` and the `Visibility API` to track the element's visibility.
0 commit comments