From 6c8340b70ba77730d707ce8effbcbbc7e2762bdf Mon Sep 17 00:00:00 2001
From: linxianxi <904492381@qq.com>
Date: Thu, 18 Jan 2024 16:53:32 +0800
Subject: [PATCH] docs: add example to md
---
README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/README.md b/README.md
index 51906fa..40cf6be 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,56 @@ pnpm i react-selectable-box
[docs](https://linxianxi.github.io/react-selectable-box/)
+### Example
+
+```javascript
+import Selectable, { useSelectable } from 'react-selectable-box';
+
+const list: number[] = [];
+for (let i = 0; i < 200; i++) {
+ list.push(i);
+}
+
+const App = () => {
+ return (
+