Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/any-hooks/solid-hooks

A high-quality & reliable Solid Hooks library.
https://github.com/any-hooks/solid-hooks

hooks primitives solid-js solidjs

Last synced: about 1 month ago
JSON representation

A high-quality & reliable Solid Hooks library.

Awesome Lists containing this project

README

        

# 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](https://any-hooks.netlify.app)

## Usage

### Install

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

### Examples

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

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

return (


{state()}


toggle

)
}
```

## License

MIT