Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update React API reference links in @wordpress/element reference-guides #62475

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions packages/element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ _Returns_

_Related_

- <https://reactjs.org/docs/react-api.html#reactlazy>
- <https://react.dev/reference/react/lazy>

### memo

_Related_

- <https://reactjs.org/docs/react-api.html#reactmemo>
- <https://react.dev/reference/react/memo>

### Platform

Expand Down Expand Up @@ -266,7 +266,7 @@ const placeholderLabel = Platform.select( {

_Related_

- <https://reactjs.org/docs/react-api.html#reactpurecomponent>
- <https://react.dev/reference/react/PureComponent>

### RawHTML

Expand Down Expand Up @@ -308,7 +308,7 @@ _Returns_

_Related_

- <https://reactjs.org/docs/react-api.html#starttransition>
- <https://react.dev/reference/react/startTransition>

### StrictMode

Expand All @@ -318,7 +318,7 @@ Component that activates additional checks and warnings for its descendants.

_Related_

- <https://reactjs.org/docs/react-api.html#reactsuspense>
- <https://react.dev/reference/react/Suspense>

### switchChildrenNodeName

Expand Down Expand Up @@ -347,25 +347,25 @@ _Related_

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usecallback>
- <https://react.dev/reference/react/useCallback>

### useContext

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usecontext>
- <https://react.dev/reference/react/useContext>

### useDebugValue

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usedebugvalue>
- <https://react.dev/reference/react/useDebugValue>

### useDeferredValue

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usedeferredvalue>
- <https://react.dev/reference/react/useDeferredValue>

### useEffect

Expand All @@ -377,61 +377,61 @@ _Related_

_Related_

- <https://reactjs.org/docs/hooks-reference.html#useid>
- <https://react.dev/reference/react/useId>

### useImperativeHandle

_Related_

- <https://reactjs.org/docs/hooks-reference.html#useimperativehandle>
- <https://react.dev/reference/react/useImperativeHandle>

### useInsertionEffect

_Related_

- <https://reactjs.org/docs/hooks-reference.html#useinsertioneffect>
- <https://react.dev/reference/react/useInsertionEffect>

### useLayoutEffect

_Related_

- <https://reactjs.org/docs/hooks-reference.html#uselayouteffect>
- <https://react.dev/reference/react/useLayoutEffect>

### useMemo

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usememo>
- <https://react.dev/reference/react/useMemo>

### useReducer

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usereducer>
- <https://react.dev/reference/react/useReducer>

### useRef

_Related_

- <https://reactjs.org/docs/hooks-reference.html#useref>
- <https://react.dev/reference/react/useRef>

### useState

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usestate>
- <https://react.dev/reference/react/useState>

### useSyncExternalStore

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore>
- <https://react.dev/reference/react/useSyncExternalStore>

### useTransition

_Related_

- <https://reactjs.org/docs/hooks-reference.html#usetransition>
- <https://react.dev/reference/react/useTransition>

<!-- END TOKEN(Autogenerated API docs) -->

Expand Down
38 changes: 19 additions & 19 deletions packages/element/src/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export { Fragment };
export { isValidElement };

/**
* @see https://reactjs.org/docs/react-api.html#reactmemo
* @see https://react.dev/reference/react/memo
*/
export { memo };

Expand All @@ -150,22 +150,22 @@ export { memo };
export { StrictMode };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usecallback
* @see https://react.dev/reference/react/useCallback
*/
export { useCallback };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usecontext
* @see https://react.dev/reference/react/useContext
*/
export { useContext };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
* @see https://react.dev/reference/react/useDebugValue
*/
export { useDebugValue };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
* @see https://react.dev/reference/react/useDeferredValue
*/
export { useDeferredValue };

Expand All @@ -175,72 +175,72 @@ export { useDeferredValue };
export { useEffect };

/**
* @see https://reactjs.org/docs/hooks-reference.html#useid
* @see https://react.dev/reference/react/useId
*/
export { useId };

/**
* @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
* @see https://react.dev/reference/react/useImperativeHandle
*/
export { useImperativeHandle };

/**
* @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
* @see https://react.dev/reference/react/useInsertionEffect
*/
export { useInsertionEffect };

/**
* @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
* @see https://react.dev/reference/react/useLayoutEffect
*/
export { useLayoutEffect };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usememo
* @see https://react.dev/reference/react/useMemo
*/
export { useMemo };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usereducer
* @see https://react.dev/reference/react/useReducer
*/
export { useReducer };

/**
* @see https://reactjs.org/docs/hooks-reference.html#useref
* @see https://react.dev/reference/react/useRef
*/
export { useRef };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usestate
* @see https://react.dev/reference/react/useState
*/
export { useState };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
* @see https://react.dev/reference/react/useSyncExternalStore
*/
export { useSyncExternalStore };

/**
* @see https://reactjs.org/docs/hooks-reference.html#usetransition
* @see https://react.dev/reference/react/useTransition
*/
export { useTransition };

/**
* @see https://reactjs.org/docs/react-api.html#starttransition
* @see https://react.dev/reference/react/startTransition
*/
export { startTransition };

/**
* @see https://reactjs.org/docs/react-api.html#reactlazy
* @see https://react.dev/reference/react/lazy
*/
export { lazy };

/**
* @see https://reactjs.org/docs/react-api.html#reactsuspense
* @see https://react.dev/reference/react/Suspense
*/
export { Suspense };

/**
* @see https://reactjs.org/docs/react-api.html#reactpurecomponent
* @see https://react.dev/reference/react/PureComponent
*/
export { PureComponent };

Expand Down
Loading