UNPKG

@react-component-library/utils

Version:

A collection of utility hooks and components tailored to streamline React application development.

35 lines (23 loc) 894 B
# @react-component-library/utils A collection of utility hooks and components tailored to streamline React application development. ## Installation To start using these utility hooks and components in your project, simply install the package via [npm](https://github.com/npm/cli): ``` npm install @react-component-library/utils --save ``` <!-- Once installed, you can import the Datepicker component and integrate it into your React application as follows: ```js import { useState } from "react"; import { useControlledState } from '../dist/hooks'; const App = () => { const [date, setDate] = useState(new Date()); return ( <DatePicker value={date} onChange={(date) => setDate(date)} /> ); }; ``` With just a few lines of code, you can incorporate Datepicker into your application and start enabling date selection functionality for your users. -->