Shan Yue in Dachang interview questions, there are more than 600 questions.

It also includes interview questions in a variety of directions, such as React, HTTP, etc

But a lot of them are about code articles:

  1. Part of it is your programming skills
  2. Part of it is using code to test your React/Vue abilities

I have thrown all the code in the repository into CodeSandBox and CodePen, and keep updating it. Please follow me on GitHub and my Codepen.

  • One question per day for the big interview
  • One question per day for the big interview

In the end, I packaged all the interview questions as PDFs, and if you are interested, you can send me a private message.

CodeSandbox sample set

Since CodeSandBox cannot be shared as a favorite, I’ll summarize the examples involved here

  1. Reaction. memo and performance optimization. When the state of a component is updated, all of its child component trees are rerendered.
  2. React. Memo and memorize data
  3. Reaction. memo and Reaction. useMemo optimize performance
  4. React. Memo and React. UseCallback optimize performance
  5. Can index of array be used as key in React? . In this code, the index is used as the key, which is mixed with the input, causing a bug
  6. React uses index of array as key. In this code, the index is used as the key, and random numbers are mixed in, causing a bug
  7. The React brothers component communicates. How do sibling components communicate in React
  8. Synthesize events in React. Events in React are composite events that you can usee.nativeEventGet the native event and observee.nativeEvent.currentTargetYou will find that React binds all events together#app(Root component mounted by the React application)
  9. What is the native event of input.onChange in React?. To observe thee.nativeEvent.typeknown
  10. How do act hooks implement a Counter Counter
  11. React FiberNode data structure. To carry outelement._ownerWe know the FiberNode data structure
  12. When React clicks a button it increases three times. You need to use the callback function, otherwise it will report an error
  13. React the necessity of immutable data.
  14. React the necessary function component for immutable data. When setState is the same data twice in act hooks, it is not rerendered
  15. Event handling for React state batch updates. The state in event processing is updated in batches, reducing rendering times
  16. Asynchronous request for React state batch updates. The state in an asynchronous request will not be updated in batches and will result in multiple renders
  17. React18 status batch updates. In React 18 all states will be updated in batch
  18. React capture value

Codepen sample set

  • Interview guide for front-end big factory