Open
Conversation
added 9 commits
November 26, 2023 15:10
PassionPenguin
suggested changes
Jan 18, 2024
Contributor
PassionPenguin
left a comment
There was a problem hiding this comment.
麻烦译者翻译的时候注意:
- 使用翻译软件翻译后,一定要清理干净尾巴,您-你混用、代码格式混乱、空格混乱
- L268-L857 全部没翻译
| @@ -5,40 +5,40 @@ | |||
| > * 译者: | |||
| > * 校对者: | |||
|
|
|||
Contributor
There was a problem hiding this comment.
麻烦给一个标题:)
pls, translate the title and add it to the body part of the markdown :)
| ## 介绍 | ||
|
|
||
| When it comes to interviewing for a React frontend developer position, being well-prepared for the technical questions is crucial. React has become one of the most popular JavaScript libraries for building user interfaces, and employers often focus on assessing a candidate's understanding of React's core concepts, best practices, and related technologies. In this article, we will explore a comprehensive list of questions commonly asked during React frontend developer interviews. By familiarizing yourself with these questions and their answers, you can enhance your chances of success and demonstrate your proficiency in React development. So, let's dive in and explore the key topics that you should be ready to tackle in a React Frontend Developer interview. | ||
| 当面试 React 前端开发人员职位时,为技术问题做好充分准备是至关重要的。React 已经成为最流行的用于构建用户界面的 JavaScript 库之一,雇主经常关注于评估应聘者对 React 的核心概念、最佳实践和相关技术的理解程度。在这篇文章中,我们将探讨一下React 前端开发面试中涉及到的一系列问题。通过了解这些问题的答案,你可以提高你面试成功的次数,并展示你在 React 开发中的熟练程度。因此,让我们深入探讨一下您在 React 前端开发面试中应该准备好的题目。 |
Contributor
There was a problem hiding this comment.
- 在面试 React 前端开发人员职位时,做好技术问题的充分准备是至关重要的。(感觉原文不是很贴合现代汉语的表达)
- 第二句话存在一个句子里面多个主谓宾结构
- 展示=>展现(一般用展现能力多点吧)
- 您、你的混用,这里其实建议全文改成你,“您”的使用,有点太高高在上了
Comment on lines
+16
to
+23
| - `useState`: 管理函数组件中的状态。 | ||
| - `useEffect`: 在函数组件中执行副作用,例如获取数据或订阅事件。 | ||
| - `useContext`: 访问函数组件中的 React 上下文的值。 | ||
| - `useRef`: 创建渲染过程持久存在的元素或者值的可变的引用。 | ||
| - `useCallback`: 缓存函数以防止不必要的重新渲染。 | ||
| - `useMemo`: 缓存值,通过缓存昂贵的计算结果来提高性能。 | ||
| - `useReducer`: 使用 reducer 函数管理状态,类似于 Redux 的工作方式。 | ||
| - `useLayoutEffect`: 类似于 useEffect,但是在所有 DOM 更新之后会同步执行副作用函数。 |
| - `useLayoutEffect`: 类似于 useEffect,但是在所有 DOM 更新之后会同步执行副作用函数。 | ||
|
|
||
| These hooks provide powerful tools for managing state, handling side effects, and reusing logic in React functional components. | ||
| 这些钩子为React 函数组件提供了强有力的工具,以用来管理状态、处理副作用和复用逻辑。 |
Contributor
There was a problem hiding this comment.
- 参照格式规范,React 前面应该加空格
- 以、用来,语义重复了
Comment on lines
+16
to
+23
| - `useState`: 管理函数组件中的状态。 | ||
| - `useEffect`: 在函数组件中执行副作用,例如获取数据或订阅事件。 | ||
| - `useContext`: 访问函数组件中的 React 上下文的值。 | ||
| - `useRef`: 创建渲染过程持久存在的元素或者值的可变的引用。 | ||
| - `useCallback`: 缓存函数以防止不必要的重新渲染。 | ||
| - `useMemo`: 缓存值,通过缓存昂贵的计算结果来提高性能。 | ||
| - `useReducer`: 使用 reducer 函数管理状态,类似于 Redux 的工作方式。 | ||
| - `useLayoutEffect`: 类似于 useEffect,但是在所有 DOM 更新之后会同步执行副作用函数。 |
| [Learn more](https://react.dev/learn/passing-props-to-a-component) | ||
|
|
||
| ### 11. What is a state manager and which ones have you worked with or know? | ||
| ### 11. 什么是状态管理,你使用过或者了解过哪些状态管理工具? |
Comment on lines
258
to
260
| [Learn more](https://mobx.js.org/README.html) | ||
|
|
||
| [Learn more](https://redux-toolkit.js.org/) |
| [Learn more](https://redux-toolkit.js.org/) | ||
|
|
||
| ### 12. In which cases can you use local state and when should you use global state? | ||
| ### 12. 什么情况下应该使用本地状态和全局状态? |
| 如果状态仅仅被一个组件使用并且不会传递给其他组件,此时推荐使用本地状态。本地状态还用来渲染列表项。然而,如果组件之间的组合导致数据需要在多个嵌套组件之间传递,那么推荐使用全局状态。 | ||
|
|
||
| ### 13. What is a reducer in Redux and what parameters does it take? | ||
| ### 13. 在 Redux 中什么是 reducer,它接收哪些参数? |
| ### 13. What is a reducer in Redux and what parameters does it take? | ||
| ### 13. 在 Redux 中什么是 reducer,它接收哪些参数? | ||
|
|
||
| A reducer is a pure function that takes the state and action as parameters. Inside the reducer, we track the type of the received action and, depending on it, we modify the state and return a new state object. |
Contributor
added 7 commits
February 22, 2024 22:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
译文翻译完成,resolve #9526