{"repo":"junerver/ComposeHooks","free":true,"listed":false,"github":"https://github.com/junerver/ComposeHooks","clone":"git clone https://github.com/junerver/ComposeHooks.git","description":"use React style hooks in Compose Multiplatform to easier management state","language":"Kotlin","stars":103,"topics":["hooks-api-react","jetpack-compose","android","jetpack","jetpack-compose-library","compose-multiplatform","kotlin-multiplatform"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"ComposeHooks English 简体中文 Star History KMP Support NOTE: The artifact id is hooks2 Supported targets: - android - desktop (jvm) - iosarm64 - iosimulatorarm64 - iosx64 - wasmJs (browser) — enables Compose Multiplatform on the Web (WASM), so downstream projects can run interactive previews in the browser. Available since 2.4.0 . About The idea for the project comes from alibaba/hooks, which is a very easy-to-use collection of React Hooks. It encapsulates most common operations as custom hooks, and useRequest is the top priority. It is designed to be very lightweight, highly configurable, and easy to use. Therefore, based on this design idea, Hooks that can be used in the Compose project were created using similar API names. The hooks that have been implemented so far are as follows: Note: All use functions also have the signature of remember . If you prefer Compose’s naming method, just use rememberXxx ! Hooks State hook name description ------------------------------------------------------------ ------------------------------------------------------------ useAutoReset A hook which will reset state to the default value after some time. useBoolean Hook to manage boolean state. useContext just like react useCreation useCreation is the replacement for useRef . useDebounce A hook that deal with the debounced value. Form.useForm A Hook that can easier control headless component Form useGetState A Hooks that handle state using destructuring declaration syntax. useImmutableList A hoo","default_branch":null,"files":null,"tree":[],"storefront":"/r/junerver","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/junerver/ComposeHooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}