Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

use-shit

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-shit

The best use-hook ever made.

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
8
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

use-shit

NPM License npm bundle size

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); // shit === 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

Static Badge

Keywords

use

FAQs

Package last updated on 14 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts