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/react

v1.0.0

Published

@react-like/react ===========

Readme

@react-like/react

NPM Version  NPM Version  unpacked size  Author

🔧 Install

npm install @react-like/react

🔖 React

类型typeof React

简介:无说明

🔖 defineComponent

类型typeof defineComponent

简介:无说明

🔖 useState

类型typeof React.useState

简介:无说明

🔖 useEffect

类型typeof React.useEffect

简介:无说明

🔖 useMemo

类型typeof React.useMemo

简介:无说明

🔖 useRef

类型typeof React.useRef

简介:无说明

🔖 useCallback

类型typeof React.useCallback

简介:无说明

🔖 createContext

类型typeof React.createContext

简介:无说明

🔖 useContext

类型typeof React.useContext

简介:无说明

🔖 useImperativeHandle

类型typeof React.useImperativeHandle

简介:无说明

🔖 useInsertionEffect

类型typeof React.useInsertionEffect

简介:无说明

🔖 useReducer

类型typeof React.useReducer

简介:无说明

🔖 useTransition

类型typeof React.useTransition

简介:无说明

🔖 useLayoutEffect

类型typeof React.useLayoutEffect

简介:无说明

🔖 useId

类型typeof React.useId

简介:无说明

🔖 createElement

类型typeof React.createElement

简介:无说明

🔖 memo

类型typeof React.memo

简介:无说明

🔖 Children

类型{ map<T, C>(children: C | readonly C[], fn: (child: C, index: number) => T): C extends null | undefined ? C : Exclude<T, boolean | null | undefined>[]; forEach<C>(children: C | readonly C[], fn: (child: C, index: number) => void): void; count(children: any): number; only<C>(children: C): C extends any[] ? never : C; toArray(children: React.ReactNode | React.ReactNode[]): (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[]; }

简介:无说明

🔖 cloneElement

类型typeof React.cloneElement

简介:无说明

🔖 createRef

类型typeof React.createRef

简介:无说明

🔖 forwardRef

类型typeof React.forwardRef

简介:无说明

🔖 Fragment

类型React.ExoticComponent<{ children?: React.ReactNode; }>

简介:无说明

🔖 isValidElement

类型typeof React.isValidElement

简介:无说明

🔖 version

类型string

简介:无说明

🔖 Component

类型typeof React.Component

简介:无说明

🔖 PureComponent

类型typeof React.PureComponent

简介:无说明

🔖 ReactNode

类型React.ReactNode

简介:无说明

🔖 ReactElement

类型ReactElement

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ----- | -- | ----------------- | --- | | type | | T | | | props | | P | | | key | | string \| null | |

🔖 SetStateAction

类型SetStateAction<T>

简介:无说明

🔖 Dispatch

类型Dispatch<T>

简介:无说明

🔖 Reducer

类型Reducer<T, A>

简介:无说明

🔖 FC

类型FC<P>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | --- | | ( props: P, /** * @deprecated * * @see {@link https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods React Docs} */ deprecatedLegacyContext?: any, ): ReactNode; | | `` | | | propTypes | Used to declare the types of the props accepted by thecomponent. These types will be checked during renderingand in development only.We recommend using TypeScript instead of checking proptypes at runtime. | ?: WeakValidationMap<P> \| undefined | | | ⚠️~~contextTypes~~ | [Lets you specify which legacy context is consumed bythis component.] | ?: ValidationMap<any> \| undefined | | | ⚠️~~defaultProps~~ | [Use {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#default_value|default values for destructuring assignments instead}.] Used to define default values for the props accepted bythe component. | ?: Partial<P> \| undefined | | | displayName | Used in debugging messages. You might want to set itexplicitly if you want to display a different name fordebugging purposes. | ?: string \| undefined | |

🔖 Ref

类型Ref<P>

简介:无说明

🔖 RefObject

类型RefObject<T>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------- | ----------------------------- | ---------------------- | --- | | current | The current value of the ref. | readonly : T \| null | |

🔖 MutableRefObject

类型MutableRefObject<T>

简介:无说明

⚙️ API 参数

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

🔖 ForwardRefExoticComponent

类型ForwardRefExoticComponent<P>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | --- | | ⚠️~~defaultProps~~ | [Use {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#default_value|default values for destructuring assignments instead}.] | ?: Partial<P> \| undefined | | | propTypes | | ?: WeakValidationMap<P> \| undefined | |

🔖 PropsWithoutRef

类型PropsWithoutRef<P>

简介:无说明

🔖 RefAttributes

类型RefAttributes<T>

简介:无说明

⚙️ API 参数

| 属性 | 说明 | 类型 | 默认值 | | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | --- | | ref | Allows getting a ref to the component instance.Once the component unmounts, React will set ref.current to null(or call the ref with null if you passed a callback ref). | ?: LegacyRef<T> \| undefined | |