Skip to content

Commit 1b1e804

Browse files
committed
release: 0.2.34
1 parent 2249cfc commit 1b1e804

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# 0.2.34
2+
3+
**Core Changes**
4+
5+
- Add `useMediaQuery`
6+
- `useCompositionInput` now supports `<textarea />`
7+
8+
```tsx
9+
export const Example2 = () => {
10+
const textareaProps = useCompositionInput<HTMLTextAreaElement>(useCallback((value: string) => {
11+
// Do something with the value
12+
}, []));
13+
14+
return (
15+
<textarea
16+
{...textareaProps}
17+
// useCompositionInput is uncontrolled, so you might need to provide defaultValue
18+
defaultValue={defaultValue}
19+
/>
20+
);
21+
}
22+
```
23+
124
# 0.2.33
225

326
**Core Changes**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "foxact",
3-
"version": "0.2.33",
3+
"version": "0.2.34",
44
"private": true,
55
"description": "React Hooks/Utils done right. For browser, SSR, and React Server Components.",
66
"homepage": "https://foxact.skk.moe",

0 commit comments

Comments
 (0)