{"repo":"react-component/util","free":true,"listed":false,"github":"https://github.com/react-component/util","clone":"git clone https://github.com/react-component/util.git","description":"🛠️ Shared React utilities for rc-component packages.","language":"TypeScript","stars":671,"topics":["ant-design","antd","javascript","react","react-component"],"license":"MIT","category":"ui-components","readme_excerpt":"@rc-component/util Part of the Ant Design ecosystem. 🛠️ Shared React utilities for rc-component packages. English 简体中文 Highlights - Built for React and maintained by the rc-component team. - Used by Ant Design and other React component libraries. - Ships TypeScript declarations with both ES module and CommonJS outputs. - Keeps examples, tests, and preview builds aligned with the package source. This package was historically published as rc-util . Prefer the scoped package for new code. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API The package exposes small, focused helpers used across rc-component and Ant Design packages. Import the public entry when possible, and use subpath imports for specialized DOM, React, or test helpers. Area Examples --------------- ---------------------------------------------------------------------------------- React hooks useEvent , useLayoutEffect , useMergedState , useState helpers React utilities Children/toArray , composeRef , pickAttrs , Portal DOM utilities Dom/canUseDom , Dom/contains , Dom/dynamicCSS , Dom/focus , getScrollBarSize Async helpers raf , raf.cancel Warnings warning , noteOnce , resetWarned Tests test/domHook for DOM prototype spies Examples in docs/examples cover the commonly used subpath helpers. Development The dumi site runs at http://localhost:8000 by default. Release The release flow is handled by @rc-component/np through the rc-np command after the package build. License @rc-compo","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/util/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."}