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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@react-like/vue

v18.2.4

Published

react-shim

Readme

@react-like/vue

react-shim

NPM Version  NPM Version  unpacked size  Author

🔧 Install

npm install @react-like/vue

🔖 React

类型typeof default

简介:无说明

🔖 defineComponent

类型typeof defineComponent

简介:无说明

🔖 useState

类型typeof default.useState

简介:无说明

🔖 useEffect

类型typeof default.useEffect

简介:无说明

🔖 useMemo

类型typeof default.useMemo

简介:无说明

🔖 useRef

类型typeof default.useRef

简介:无说明

🔖 useCallback

类型typeof default.useCallback

简介:无说明

🔖 createContext

类型typeof default.createContext

简介:无说明

🔖 useContext

类型typeof default.useContext

简介:无说明

🔖 useImperativeHandle

类型typeof default.useImperativeHandle

简介:无说明

🔖 useInsertionEffect

类型typeof default.useEffect

简介:无说明

🔖 useReducer

类型typeof default.useReducer

简介:无说明

🔖 useTransition

类型typeof default.useTransition

简介:无说明

🔖 useLayoutEffect

类型typeof default.useEffect

简介:无说明

🔖 useId

类型typeof default.useId

简介:无说明

🔖 createElement

类型typeof default.createElement

简介:无说明

🔖 memo

类型<T>(component: T) => T

简介:无说明

🔖 Children

类型{ map(children: any[], fn: (child: any, index: number) => any): any[]; forEach(children: any[], fn: (child: any, index: number) => void): void; count(children: any[]): number; only(children: any[]): any; toArray(children: any[]): any[]; }

简介:无说明

🔖 cloneElement

类型typeof default.cloneElement

简介:无说明

🔖 createRef

类型typeof default.createRef

简介:无说明

🔖 forwardRef

类型typeof default.forwardRef

简介:无说明

🔖 Fragment

类型{ new (): { $props: VNodeProps; }; __isFragment: true; }

简介:无说明

🔖 isValidElement

类型typeof default.isValidElement

简介:无说明

🔖 version

类型"18.2.0"

简介:无说明

🔖 Component

类型typeof default.Component

简介:无说明

🔖 PureComponent

类型typeof default.PureComponent

简介:无说明

🔖 ReactNode

类型default.ReactNode

简介:无说明

🔖 ReactElement

类型default.ReactElement

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------------ | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --- | | type | | VNodeTypes | | | props | | (VNodeProps & ExtraProps) \| null | | | key | | PropertyKey \| null | | | ref | | VNodeNormalizedRef \| null | | | scopeId | SFC only. This is assigned on vnode creation using currentScopeIdwhich is set alongside currentRenderingInstance. | string \| null | | | children | | VNodeNormalizedChildren | | | component | | ComponentInternalInstance \| null | | | dirs | | DirectiveBinding\[\] \| null | | | transition | | TransitionHooks<HostElement> \| null | | | el | | HostNode \| null | | | placeholder | | HostNode \| null | | | anchor | | HostNode \| null | | | target | | HostElement \| null | | | targetStart | | HostNode \| null | | | targetAnchor | | HostNode \| null | | | suspense | | SuspenseBoundary \| null | | | shapeFlag | | number | | | patchFlag | | number | | | appContext | | AppContext \| null | |

🔖 SetStateAction

类型SetStateAction<T>

简介:无说明

🔖 Dispatch

类型Dispatch<T>

简介:无说明

🔖 Reducer

类型Reducer<T, A>

简介:无说明

🔖 FC

类型FC<P>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------------------------------------- | -- | --------------- | --- | | (props: P, context?: any): ReactNode; | | `` | | | displayName | | ?: string | | | defaultProps | | ?: Partial<P> | |

🔖 Ref

类型Ref<P>

简介:无说明

🔖 RefObject

类型RefObject<T>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------- | -- | ---------------------- | --- | | current | | readonly : T \| null | |

🔖 MutableRefObject

类型MutableRefObject<T>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------- | -- | ---- | --- | | current | | T | |

🔖 ForwardRefExoticComponent

类型ForwardRefExoticComponent<P>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------------ | -- | ---------------------------- | --- | | defaultProps | | ?: Partial<P> \| undefined | | | propTypes | | ?: never | |

🔖 PropsWithoutRef

类型PropsWithoutRef<P>

简介:无说明

🔖 RefAttributes

类型RefAttributes<T>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | --- | -- | ------------------------------ | --- | | ref | | ?: LegacyRef<T> \| undefined | |