3.2.1 • Published 9 months ago

react-customs v3.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

React Customs

A collection of essential React hooks built with JavaScript.

Compatible with React v18.0.0+

npm version license downloads

Installation

npm install react-customs

or

npm i react-customs

Hooks and Documentation

For documentation, please visit the GitBook URL

HookDescriptionExample
useCopyToClipboardSimplify copying text to the clipboard.Example
useCounterManage a counter with step, min, and max values.Example
useDebounceDelay updates to a value.Example
useDefaultEnsure a state always has a default value.Example
useDocumentTitleDynamically update the title of a webpage.Example
useFaviconEasily update the favicon of your webpage.Example
useLockScrollLock and unlock scrolling on the page.Example
useOnlineTrack the user's online/offline status.Example
usePreviousTrack the previous and current state values.Example
useQueueManaging a queue data structure with a max size.Example
useStackManaging a stack data structure with a max size.Example
useTabAwayNumber of times a user navigates away from a tab.Example
useThemeManage and toggle between light and dark themes.Example
useWindowSizeTrack the dimensions of the browser window.Example

Quick Example

import { useDocumentTitle } from "react-customs";

function App() {
  useDocumentTitle("Hello world!");

  return <h1>No so happy hacking!</h1>;
}

export default App;

Contributing

We welcome contributions! Please read our Contribution Guide before submitting any pull requests.

Contact

For any questions or feedback, please contact:

Email: azlibdar@gmail.com

Happy hacking!

3.2.1

9 months ago

3.2.0

10 months ago

3.1.0

11 months ago

3.0.0

11 months ago

2.3.0

12 months ago

2.1.0

12 months ago

2.0.0

12 months ago

1.14.0

1 year ago

1.13.1

1 year ago

1.13.0

1 year ago

1.12.1

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago