Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/any-hooks/solid-hooks
- Owner: any-hooks
- License: mit
- Created: 2023-10-17T15:10:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-04T16:31:24.000Z (about 1 year ago)
- Last Synced: 2024-10-07T08:18:22.374Z (2 months ago)
- Topics: hooks, primitives, solid-js, solidjs
- Language: TypeScript
- Homepage: https://solid-hooks.netlify.app
- Size: 655 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solid-js - Solid Hooks - A high-quality & reliable Solid Hooks library. (📦 Components & Libraries / Helpers)
README
# Solid Hooks
A high-quality & reliable Solid Hooks library.
## 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