New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rehook

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehook

Hooks wrapper, keeps functions pure

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

rehook

React Hooks wrapper, keeps functions pure

Usage

import React, { useState } from 'react';
import rehook from './rehook';

const Counter = ({ count, setCount }) => {
  return (
    <>
      <div>count is {count}</div>
      <button onClick={() => setCount(count + 1)}>Count Up</button>
    </>
  );
};

export default rehook([{ hook: useState, name: 'count', init: 0 }])(Counter);

Keywords

react

FAQs

Package last updated on 27 Oct 2018

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