From cf1c73d038c0adcaf8b85c722d0b9b667ef44ebd Mon Sep 17 00:00:00 2001 From: Zhou Yuhang Date: Wed, 20 Aug 2025 21:34:59 +0800 Subject: [PATCH] seo: fix external 4XXs --- questions/how-do-you-debug-react-applications/en-US.mdx | 2 +- questions/what-are-higher-order-components-in-react/en-US.mdx | 2 +- questions/what-are-react-fragments-used-for/en-US.mdx | 2 -- questions/what-are-react-portals-used-for/en-US.mdx | 3 +-- questions/what-is-jsx-and-how-does-it-work/en-US.mdx | 1 - .../what-is-react-suspense-and-what-does-it-enable/en-US.mdx | 2 +- .../en-US.mdx | 1 - .../en-US.mdx | 1 - 8 files changed, 4 insertions(+), 10 deletions(-) diff --git a/questions/how-do-you-debug-react-applications/en-US.mdx b/questions/how-do-you-debug-react-applications/en-US.mdx index d271d6d..dfbc0e2 100644 --- a/questions/how-do-you-debug-react-applications/en-US.mdx +++ b/questions/how-do-you-debug-react-applications/en-US.mdx @@ -142,4 +142,4 @@ function MyComponent() { - [React Developer Tools](https://react.dev/learn/react-developer-tools) - [Error boundaries in React](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) - [Using the Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools) -- [Debugging JavaScript](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Debugging) +- [JavaScript debugging and error handling](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/Debugging_JavaScript) diff --git a/questions/what-are-higher-order-components-in-react/en-US.mdx b/questions/what-are-higher-order-components-in-react/en-US.mdx index fd92fee..d507a1c 100644 --- a/questions/what-are-higher-order-components-in-react/en-US.mdx +++ b/questions/what-are-higher-order-components-in-react/en-US.mdx @@ -83,4 +83,4 @@ In this example, `withExtraProps` is an HOC that adds an `extraProp` to `MyCompo ## Further reading - [Understanding higher order components in React](https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e) -- [HOCs vs Render Props vs Hooks](https://blog.logrocket.com/hooks-vs-render-props-vs-hocs/) +- [HOCs vs Render Props vs Hooks](https://gist.github.com/bradwestfall/4fa683c8f4fcd781a38a8d623bec20e7) diff --git a/questions/what-are-react-fragments-used-for/en-US.mdx b/questions/what-are-react-fragments-used-for/en-US.mdx index 522c94f..998e4c2 100644 --- a/questions/what-are-react-fragments-used-for/en-US.mdx +++ b/questions/what-are-react-fragments-used-for/en-US.mdx @@ -78,5 +78,3 @@ return ( ## Further reading - [React Fragments - Official Documentation](https://react.dev/reference/react/Fragment) -- [React Fragments - A Complete Guide](https://www.freecodecamp.org/news/react-fragments-complete-guide/) -- [When to use React Fragments](https://blog.logrocket.com/when-to-use-react-fragments/) diff --git a/questions/what-are-react-portals-used-for/en-US.mdx b/questions/what-are-react-portals-used-for/en-US.mdx index 6311630..b2e39d7 100644 --- a/questions/what-are-react-portals-used-for/en-US.mdx +++ b/questions/what-are-react-portals-used-for/en-US.mdx @@ -93,5 +93,4 @@ ReactDOM.createPortal(child, container); ## Further reading - [React createPortal documentation](https://react.dev/reference/react-dom/createPortal) -- [Building a modal with React Portals](https://blog.logrocket.com/building-a-modal-with-react-portals/) -- [Using React Portals for better accessibility](https://www.smashingmagazine.com/2020/03/react-portals-accessibility/) +- [Building a modal in React with React Portals](https://blog.logrocket.com/build-modal-with-react-portals/) diff --git a/questions/what-is-jsx-and-how-does-it-work/en-US.mdx b/questions/what-is-jsx-and-how-does-it-work/en-US.mdx index a0fb29f..3f7aafe 100644 --- a/questions/what-is-jsx-and-how-does-it-work/en-US.mdx +++ b/questions/what-is-jsx-and-how-does-it-work/en-US.mdx @@ -69,4 +69,3 @@ By default, React DOM escapes any values embedded in JSX before rendering them. - [React JSX documentation](https://react.dev/learn/writing-markup-with-jsx) - [Babel](https://babeljs.io/) -- [MDN Web Docs on JSX](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/JSX) diff --git a/questions/what-is-react-suspense-and-what-does-it-enable/en-US.mdx b/questions/what-is-react-suspense-and-what-does-it-enable/en-US.mdx index f6be5cf..7376245 100644 --- a/questions/what-is-react-suspense-and-what-does-it-enable/en-US.mdx +++ b/questions/what-is-react-suspense-and-what-does-it-enable/en-US.mdx @@ -87,4 +87,4 @@ In this example, `react-query` is used to fetch data, and `Suspense` provides a - [React Suspense documentation](https://react.dev/reference/react/Suspense) - [React.lazy documentation](https://react.dev/reference/react/lazy) - [React Query documentation](https://react-query.tanstack.com/) -- [Relay documentation](https://relay.dev/docs/en/experimental/api-reference#suspense) +- [Relay documentation](https://relay.dev/docs/next/guides/relay-resolvers/suspense/) diff --git a/questions/what-is-the-usereducer-hook-in-react-and-when-should-it-be-used/en-US.mdx b/questions/what-is-the-usereducer-hook-in-react-and-when-should-it-be-used/en-US.mdx index 91a39fc..ffc1683 100644 --- a/questions/what-is-the-usereducer-hook-in-react-and-when-should-it-be-used/en-US.mdx +++ b/questions/what-is-the-usereducer-hook-in-react-and-when-should-it-be-used/en-US.mdx @@ -90,4 +90,3 @@ export default Counter; - [React documentation on `useReducer`](https://react.dev/reference/react/useReducer) - [Using the `useReducer` hook](https://react.dev/learn/scaling-up-with-reducer-and-context) -- [A complete guide to `useReducer`](https://www.smashingmagazine.com/2020/06/redux-patterns-use-reducer-react/) diff --git a/questions/what-is-the-useref-hook-in-react-and-when-should-it-be-used/en-US.mdx b/questions/what-is-the-useref-hook-in-react-and-when-should-it-be-used/en-US.mdx index 0e26511..39c6266 100644 --- a/questions/what-is-the-useref-hook-in-react-and-when-should-it-be-used/en-US.mdx +++ b/questions/what-is-the-useref-hook-in-react-and-when-should-it-be-used/en-US.mdx @@ -108,4 +108,3 @@ In this example, `prevCountRef` is used to keep a reference to the previous valu - [React documentation on `useRef`](https://react.dev/reference/react/useRef) - [Using the `useRef` hook](https://react.dev/learn/manipulating-the-dom-with-refs) -- [Common use cases for `useRef`](https://blog.logrocket.com/how-to-use-react-useref-hook/)