0.8.4 • Published 4 years ago

react-7h-hooks v0.8.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

:package: 安装

使用 npm

npm i react-7h-hooks --save

使用 yarn

yarn add react-7h-hooks

:memo: 如何使用

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}
      />
    </>
  )
}

:book: 文档

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

:star: 推荐

:page_facing_up: License

MIT

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago