@any-hooks/solid
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Solid Hooks

A high-quality & reliable Solid Hooks library.

npm npm peer dependency version gzip size

Features

  • Easy to learn and use
  • Supports SSR
  • Contains a large number of advanced Hooks that are refined from business scenarios
  • Contains a comprehensive collection of basic Hooks
  • Written in TypeScript with predictable static types

Document

See Document

Usage

Install

# npm
npm i @any-hooks/solid
#pnpm
pnpm add @any-hooks/solid
#yarn
yarn add @any-hooks/solid

Examples

import { useToggle } from '@any-hooks/solid'

function App() {
  const [state, { toggle }] = useToggle(false)

  return (
    <div>
      <p>{state()}</p>
      <button onClick={toggle}>toggle</button>
    </div>
  )
}

License

MIT

Package Sidebar

Install

npm i @any-hooks/solid

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

70.1 kB

Total Files

6

Last publish

Collaborators

  • pengzhanbo