npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wjh666/react-ui

v0.0.160128

Published

基于react18 的 组件 与 hook封装

Downloads

182

Readme

@wjh666/react-ui

基于react18 的 组件 与 hook封装

useLanguage 基于 i18n 的多语言切换

useTheme 主题切换

useStatusVessel redux很累赘,基于useReducer 通过祖孙传值代替redux

useEffectOne react18在开发模式useEffect默认执行两次,使用useEffectOne解决

useScroll 手机端的滚动hook,后续看是否能兼容pc

useRequest 接口请求,兼容多种方式

useTouch 手机端轮播滚动

useWXChat 微信@tencentcloud/chat群聊

useWXTrtc 微信trtc-js-sdk直播/看播

CellGroup Group组件

Group Group组件

ScrollList 加载更多组件

StatusVessel 配合useStatusVessel使用

statement 用于指令组件使用

Popup 弹窗组件

Mask 遮罩组件

NumericKeypad 数字键盘

Carousel 结合useTouch实现全屏组件

CarouselItem 结合useTouch实现全屏组件

LiveVideo 视频播放组件

LiveTrtc 弃用,用useWXTrtc代替,实现ui与逻辑分离

WHSlot 插槽组件

Lottie 结合lottie-web实现动画,使用了statement,支持指令调用

Searches 搜索组件

Virtualized 虚拟滚动,防止dom过多造成页面卡顿

Empty 缺省页

Radio 单个单选

CssGif css动画,提供onClose动画结束事件

Rolling 由于是多语言项目,为了兼容样式,编写Rolling组件,长度超过预定宽度,自动滚动