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>
);
}