From 7f29a05f3d9e3e6c65f25fd6c66179d1bd4aecfd Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 24 Apr 2025 07:24:27 +0000
Subject: [PATCH 1/2] Generate docs for useCounter
---
src/docs/en/why-react-simplikit-matters.md | 2 +-
src/docs/ko/why-react-simplikit-matters.md | 8 +-
src/hooks/useCounter/ko/useCounter.md | 99 +++++++---------------
src/hooks/useCounter/useCounter.md | 91 ++++++--------------
4 files changed, 65 insertions(+), 135 deletions(-)
diff --git a/src/docs/en/why-react-simplikit-matters.md b/src/docs/en/why-react-simplikit-matters.md
index 972fbec3..1efc52fe 100644
--- a/src/docs/en/why-react-simplikit-matters.md
+++ b/src/docs/en/why-react-simplikit-matters.md
@@ -202,4 +202,4 @@ Compared to `react-use`, `react-simplikit` has up to about 89% smaller size:
| Unpacked Size | [237 kB](https://www.npmjs.com/package/react-simplikit) | [454 kB](https://www.npmjs.com/package/react-use) | -47.8% |
| Minified Size | [8.7 kB](https://bundlephobia.com/package/react-simplikit@0.0.29) | [78.2 kB](https://bundlephobia.com/package/react-use@17.6.0) | -88.9% |
| Gzipped Size | [2.9 kB](https://bundlephobia.com/package/react-simplikit@0.0.29) | [22 kB](https://bundlephobia.com/package/react-use@17.6.0) | -86.9% |
-| Average Size per Function
(Minified Size) | 318.2 byte | 696.3 byte | -54.3% |
+| Average Size per Function
(Minified Size) | 318.2 byte | 696.3 byte | -54.3% |
diff --git a/src/docs/ko/why-react-simplikit-matters.md b/src/docs/ko/why-react-simplikit-matters.md
index 3819f397..235a2e84 100644
--- a/src/docs/ko/why-react-simplikit-matters.md
+++ b/src/docs/ko/why-react-simplikit-matters.md
@@ -197,9 +197,9 @@ function AutoCompleteInput() {
`react-simplikit`은 `react-use`에 대비하여, 아래와 같이 최대 약 89% 작은 크기를 가져요.
-| | react-simplikit | react-use | 차이 |
-| ------------------------------------------ | ---------------------------------------------------------------- | ------------------------------------------------------------ | ------ |
-| Unpacked Size | [237 kB](https://www.npmjs.com/package/react-simplikit) | [454 kB](https://www.npmjs.com/package/react-use) | -47.8% |
+| | react-simplikit | react-use | 차이 |
+| ------------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------ | ------ |
+| Unpacked Size | [237 kB](https://www.npmjs.com/package/react-simplikit) | [454 kB](https://www.npmjs.com/package/react-use) | -47.8% |
| Minified Size | [8.7 kB](https://bundlephobia.com/package/react-simplikit@0.0.29) | [78.2 kB](https://bundlephobia.com/package/react-use@17.6.0) | -88.9% |
| Gzipped Size | [2.9 kB](https://bundlephobia.com/package/react-simplikit@0.0.29) | [22 kB](https://bundlephobia.com/package/react-use@17.6.0) | -86.9% |
-| 평균 함수 당 크기
(Minified Size 기준) | 318.2 byte | 696.3 byte | -54.3% |
+| 평균 함수 당 크기
(Minified Size 기준) | 318.2 byte | 696.3 byte | -54.3% |
diff --git a/src/hooks/useCounter/ko/useCounter.md b/src/hooks/useCounter/ko/useCounter.md
index 71b15d0b..97ae937c 100644
--- a/src/hooks/useCounter/ko/useCounter.md
+++ b/src/hooks/useCounter/ko/useCounter.md
@@ -1,55 +1,49 @@
# useCounter
-`useCounter`는 증가, 감소, 초기화 기능을 갖춘 숫자형 카운터 상태를 관리하는 리액트 훅이에요. 선택적으로 최소값과 최대값을 제공하여 카운터의 범위를 제한할 수 있어요.
+`useCounter`는 숫자 카운터 상태를 증가, 감소, 초기화 기능과 함께 관리하는 리액트 훅이에요. 선택적으로 최소값과 최대값을 제공하여 카운터의 범위를 제한할 수 있어요.
-## 인터페이스
+## Interface
```ts
-function useCounter(options?: UseCounterOptions): UseCounterReturn;
-
-type UseCounterOptions = {
- initialValue?: number;
- min?: number;
- max?: number;
- step?: number;
-};
-ㄴ
-type UseCounterReturn = {
- count: number;
- increment: () => void;
- decrement: () => void;
- reset: () => void;
- setCount: (value: number | ((prev: number) => number)) => void;
-};
+function useCounter(options: UseCounterOptions): UseCounterReturn;
```
### 파라미터