@react-like/react ===========
npm install @react-like/react@react-like/react
===========
   
类型:`typeof React
简介:无说明
类型:typeof defineComponent
简介:无说明
类型:typeof React.useState
简介:无说明
类型:typeof React.useEffect
简介:无说明
类型:typeof React.useMemo
简介:无说明
类型:typeof React.useRef
简介:无说明
类型:typeof React.useCallback
简介:无说明
类型:typeof React.createContext
简介:无说明
类型:typeof React.useContext
简介:无说明
类型:typeof React.useImperativeHandle
简介:无说明
类型:typeof React.useInsertionEffect
简介:无说明
类型:typeof React.useReducer
简介:无说明
类型:typeof React.useTransition
简介:无说明
类型:typeof React.useLayoutEffect
简介:无说明
类型:typeof React.useId
简介:无说明
类型:typeof React.createElement
简介:无说明
类型:typeof React.memo
简介:无说明
类型:{ map
简介:无说明
类型:typeof React.cloneElement
简介:无说明
类型:typeof React.createRef
简介:无说明
类型:typeof React.forwardRef
简介:无说明
类型:React.ExoticComponent<{ children?: React.ReactNode; }>
简介:无说明
类型:typeof React.isValidElement
简介:无说明
类型:string
简介:无说明
类型:typeof React.Component
简介:无说明
类型:typeof React.PureComponent
简介:无说明
类型:React.ReactNode
简介:无说明
类型:ReactElement T
简介:无说明
#### ⚙️ API 参数
| 属性 | 说明 | 类型 | 默认值 |
| ----- | -- | ----------------- | --- |
| type | | | | P
| props | | | | string \| null
| key | | | |
类型:SetStateAction
简介:无说明
类型:Dispatch
简介:无说明
类型:Reducer
简介:无说明
类型:FC
简介:无说明
#### ⚙️ API 参数
| 属性 | 说明 | 类型 | 默认值 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | --- |
| (
props: P,
/\\
\ @deprecated
\
\ @see {@link https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods React Docs}
\/
deprecatedLegacyContext?: any,
): ReactNode; | | | |?: WeakValidationMap
| propTypes | Used to declare the types of the props accepted by the
component. These types will be checked during rendering
and in development only.
We recommend using TypeScript instead of checking prop
types at runtime. |
\| undefined \| undefined | |?: ValidationMap
| ⚠️~~contextTypes~~ | \[Lets you specify which legacy context is consumed by
this component.\] | | |?: Partial
| ⚠️~~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 by
the component. | | |?: string \| undefined
| displayName | Used in debugging messages. You might want to set it
explicitly if you want to display a different name for
debugging purposes. | | |
$3
类型:Ref
简介:无说明
类型:RefObjectreadonly : T \| null
简介:无说明
#### ⚙️ API 参数
| 属性 | 说明 | 类型 | 默认值 |
| ------- | ----------------------------- | ---------------------- | --- |
| current | The current value of the ref. | | |
类型:MutableRefObject T
简介:无说明
#### ⚙️ API 参数
| 属性 | 说明 | 类型 | 默认值 |
| ------- | -- | ---- | --- |
| current | | | |
类型:ForwardRefExoticComponent?: Partial
简介:无说明
#### ⚙️ 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}.\] |
\| undefined | |?: WeakValidationMap
| propTypes | |
\| undefined | |
类型:PropsWithoutRef
简介:无说明
类型:RefAttributesref.current
简介:无说明
#### ⚙️ API 参数
| 属性 | 说明 | 类型 | 默认值 |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | --- |
| ref | Allows getting a ref to the component instance.
Once the component unmounts, React will set to nullnull
(or call the ref with if you passed a callback ref). | ?: LegacyRef