react-7h-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.8.4 • Public • Published

logo

react-7h-hooks

提供一些偏业务的实用 react hooks, 让你每天只工作 7 小时 !

npm npm npm version Language grade: JavaScript

## 📦 安装

使用 npm

npm i react-7h-hooks --save

使用 yarn

yarn add react-7h-hooks

📝 如何使用

import React from 'react'
import { useTrimInput } from 'react-7h-hooks'
 
export const Example = () => {
  const [trimValue, setTrimValue] = useTrimInput()
  const [fullTrimValue, setFullTrimValue] = useTrimInput(true)
  return (
    <>
      <input
        value={trimValue}
        onChange={setTrimValue}
      />
      <input
        value={fullTrimValue}
        onChange={setFullTrimValue}
      />
    </>
  )
}

📖 文档

https://react-7h-hooks.netlify.com/

⭐️ 推荐

📄 License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-7h-hooks

Weekly Downloads

4

Version

0.8.4

License

MIT

Unpacked Size

121 kB

Total Files

81

Last publish

Collaborators

  • jinke.li