Skip to content

Commit e10a5f5

Browse files
committed
feat: support React 19
1 parent 136a759 commit e10a5f5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[中文](README_CN.md)
44

5-
React basic virtual list, supports common features and is easy to customize. [Online Demo](https://phphe.github.io/react-base-virtual-list/)
5+
React basic virtual list, supports common features and is easy to customize. Support React 18, 19. [Online Demo](https://phphe.github.io/react-base-virtual-list/)
66

77
## Features
88

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[English](README.md)
44

5-
React 基础虚拟列表,实现了常用功能并且易于二次开发。[在线示例](https://phphe.github.io/react-base-virtual-list/)
5+
React 基础虚拟列表,实现了常用功能并且易于二次开发。支持React 18, 19。[在线示例](https://phphe.github.io/react-base-virtual-list/)
66

77
## 特点
88

@@ -110,7 +110,7 @@ export default function BaseExample() {
110110
interface VirtualListHandle {
111111
scrollToIndex(
112112
index: number,
113-
block?: "start" | "end" | "center" | "nearest"
113+
block?: "start" | "end" | "center" | "nearest",
114114
): void;
115115
getRootElement(): HTMLElement;
116116
forceUpdate(): void;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-base-virtual-list",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"license": "MIT",
55
"author": "phphe <phphe@outlook.com> (https://github.com/phphe)",
66
"description": "React base virtual list component.",
@@ -35,8 +35,8 @@
3535
},
3636
"dependencies": {},
3737
"peerDependencies": {
38-
"react": "^18",
39-
"react-dom": "^18"
38+
"react": "^18 || ^19",
39+
"react-dom": "^18 || ^19"
4040
},
4141
"devDependencies": {
4242
"react": "^18.2.0",

0 commit comments

Comments
 (0)