use-shit

The best use-hook ever made.
Use-shit is not just a tool. It is the best idea ever made
Installation:
npm i use-shit
Usage
import { useShit } from 'use-shit';
const REAL_SHIT = [1, 2, 3, 4];
const [shit] = useShit(REAL_SHIT);
Example
import React from 'react';
import { useShit } from 'use-shit';
const REAL_SHIT = [1, 2, 3, 4];
export function App() {
const [shit] = useShit(REAL_SHIT);
return (
<>
<p>Thanks god, My code is beautiful!</p>
<ul>
{ shit.map((slice) => (
<li key={slice}>{slice}</li>
)) }
</ul>
</>
);
}
If you are thinking why not just use the REAL_SHIT, you are not a true hook based developer. Althorugh REAL_SHIT is equal to shit, but it's always nice to have some unnessesury useShit in body of components.
License
MIT
