Skip to content

pavi2410/useCompose

Repository files navigation

useCompose

Headless @Composable hooks that drive UI logic. Inspired by React.

CI

react query
react example query example

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:

repositories {
  ...
  maven {
    url = uri("https://jitpack.io")
  }
}

Step 2. Add the dependency

dependencies {
  implementation("com.github.pavi2410.useCompose:<module_name>:<version>")
}

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