Skip to content
(持续增加中)提供一些偏业务的 react hooks , 让你每天只工作 7 小时
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.storybook
__tests__
src
stories
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.prettierignore
.prettierrc
CHANGELOG.md
LICENSE
README.md
babel.config.js
commitlint.config.js
jest.config.js
package.json
setupTests.js
tsconfig.json
yarn.lock

README.md

react-7h-hooks

提供一些业务 react hooks , 让你每天只工作 7 小时

npm npm npm version

📦 安装

使用 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

You can’t perform that action at this time.