webixu-react-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Webixu React Utils

npm version License: MIT

Webixu React Utils is a collection of utility functions for React. These functions are designed to make common tasks in React development easier and more efficient.

Installation

You can install Webixu React Utils using npm:

npm install webixu-react-utils

Usage

To use Webixu React Utils, simply import the utility functions you need into your project:

import { destructureRef, destructureRefsObject } from 'webixu-react-utils';

// use the functions here

Available Functions

  • destructureRef(ref: React.RefObject<T>): T: a utility function that retrieves the current value of a React ref object.
  • destructureRefsObject(refsObject: Record<string, React.RefObject<T>>): Record<string, T>: a utility function that retrieves the current values of multiple React ref objects.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

/webixu-react-utils/

    Package Sidebar

    Install

    npm i webixu-react-utils

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    18.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • jaakal