Skip to content

Commit

Permalink
Update React API reference links in @wordpress/element reference-guid…
Browse files Browse the repository at this point in the history
…es (WordPress#62475)

* Update React API reference links

* Addressed feedback

Co-authored-by: amitraj2203 <amitraj2203@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
3 people authored and patil-vipul committed Jun 17, 2024
1 parent 0b7b7c2 commit a1576d7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
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

0 comments on commit a1576d7

Please sign in to comment.