Skip to main content
Version: 5.6.1

Getting Started

Installation​

npm i - s rooks

Importing the hooks​

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

import { useDidMount } from "rooks";

Usage​

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