Skip to main content
Version: v5.0.0


Complete Documentation​

Image from Gyazo

List of all hooks​


Standalone build for all rooks. This package contains all the hooks built as part of the rooks project.

Note: If you only need a few hooks from the rooks package, it's prefereable to install individiual hooks from npm instead of the standalone rooks build. In other words, install @rooks/useDidMount instead of rooks if you only need the useDidMount functionality.


For a specific hook like useDidMount​

npm i -s @rooks/useDidMount
npm i -s @rooks/useInterval
import useDidMount from "@rooks/useDidMount";

For standalone build with all the hooks​

npm i - s rooks

Import any hook from "rooks" and start using them!

import { useDidMount } from "rooks";


function App() {
useDidMount(() => {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>



Join Bhargav's discord server​

You can click on the floating discord icon at the bottom right of the screen and talk to us in our server.