2.0.3 • Published 6 months ago

@msa_cli/react-composable v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

@msa_cli/react-composable

A powerful and easy-to-use package providing composable utilities for React projects. This library is designed to simplify and enhance your React development workflow, and it is fully compatible with the latest versions of React and Next.js.


Installation

To install the package, use the following command:

npm install @msa_cli/react-composable

Or, if you prefer Yarn:

yarn add @msa_cli/react-composable

Overview

The @msa_cli/react-composable package offers a set of helpful functions designed to streamline your project needs. These functions follow composable patterns, enabling flexibility and reusability throughout your application. Whether you're working on a standard React project or leveraging the latest version of Next.js, this library is built to integrate seamlessly.

Key Features

  • Composable Utilities: Ready-to-use functions that follow React’s compositional paradigm.
  • Project Agnostic: Works well in both React and Next.js environments.
  • Simple API: Easy-to-understand and implement functions.
  • Documentation: Comprehensive documentation available at React Composable Documentation.

Usage

Import the functions you need and use them directly in your components:

Example:

'use client'

import { Input } from '@/components/ui/input'
import { useDebounce } from '@msa_cli/react-composable'

export default function Debounce() {
  const [value, debouncedValue, setValue] = useDebounce('', 1000)

  return (
    <div className="flex flex-col gap-4">
      <Input
        type="text"
        value={value}
        onChange={(e) => setValue(e.target.value)}
        className="border p-2 rounded"
        placeholder="Type something..."
      />
      <div className="flex flex-col gap-2">
        <div>Current value: {value}</div>
        <div>Debounced value: {debouncedValue}</div>
      </div>
      <div className="mt-5">How to use:</div>
    </div>
  )
}

Refer to the documentation for detailed examples and API references.


Compatibility

This package supports:

  • React 17+
  • Next.js 13+ (including the latest app router features)

It’s tested to ensure optimal performance and compatibility with modern React features such as hooks and server components.


Documentation

Visit the official documentation for a complete guide to all available composables, detailed usage examples, and troubleshooting tips.


Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve the package. Check the CONTRIBUTING.md file for guidelines.


License

This project is licensed under the MIT License. See the LICENSE file for details.

2.0.3

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.1.6

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.2

6 months ago

1.1.3

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.17-rc

9 months ago

1.0.16

9 months ago

1.0.16-rc.2

9 months ago

1.0.16-rc.1

9 months ago

1.0.16-rc

9 months ago

1.0.15

10 months ago

1.0.15-rc.2

10 months ago

1.0.15-rc.1

10 months ago

1.0.15-rc

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3-rc-1

10 months ago

1.0.3-rc-0

10 months ago

1.0.3-rc

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago