https://github.com/pavi2410/usecompose
Headless @Composable hooks that drive UI logic. Inspired by TanStack & React.
https://github.com/pavi2410/usecompose
android android-library composable compose headless hooks jetpack-compose kotlin library react react-hooks ui
Last synced: 10 months ago
JSON representation
Headless @Composable hooks that drive UI logic. Inspired by TanStack & React.
- Host: GitHub
- URL: https://github.com/pavi2410/usecompose
- Owner: pavi2410
- License: mit
- Created: 2021-12-14T12:38:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T02:16:30.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T12:12:10.234Z (10 months ago)
- Topics: android, android-library, composable, compose, headless, hooks, jetpack-compose, kotlin, library, react, react-hooks, ui
- Language: Kotlin
- Homepage:
- Size: 162 KB
- Stars: 27
- Watchers: 2
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# useCompose
Headless @Composable hooks that drive UI logic. Inspired by React.
[](https://jitpack.io/#pavi2410/useCompose) [](https://github.com/pavi2410/useCompose/actions/workflows/ci.yml)
| ⚛ `react` | ❓ `query` |
| --- | --- |
|  |  |
## Modules
### ⚛ react
- useState
- useEffect
- useContext
- useReducer
### 🪝 hooks
- useToggle
### 🕸 network
- useConnnectionStatus
### ❓ query
- useQuery
## Installation
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
```gradle
repositories {
...
maven {
url = uri("https://jitpack.io")
}
}
```
Step 2. Add the dependency
```gradle
dependencies {
implementation("com.github.pavi2410.useCompose::")
}
```
## Help Wanted
I want your help in making this library extensive such that this cover many of the commonly used hooks. Also, I want your help in building a KMP friendly library.
## License
[MIT](https://choosealicense.com/licenses/mit/)