react-mkx-toolkit
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "react-mkx-toolkit", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -53,3 +53,4 @@ ## React Custom Hooks | ||
The `useRandomArray` hook is a custom React hook designed to simplify the handling of keyboard events within your React applications. With this hook, you can easily listen for specific keyboard inputs and execute callback functions in response to those inputs. | ||
This hook is useful for scenarios where you need to generate a sequence of numbers within a specified range, | ||
such as creating test data, generating random values, or iterating through a range of numerical values. | ||
@@ -62,4 +63,4 @@ ## Usage | ||
const MyComponent = () => { | ||
const arr = useRandomArray(1, 10); | ||
//Output : [1,2,3,4,5,6,7,8,9] | ||
const arr = useRandomArray(0, 10); | ||
//Output : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ] | ||
return <>MyComponent</>; | ||
@@ -66,0 +67,0 @@ }; |
74
12797