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:
- Part of it is your programming skills
- 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
- Reaction. memo and performance optimization. When the state of a component is updated, all of its child component trees are rerendered.
- React. Memo and memorize data
- Reaction. memo and Reaction. useMemo optimize performance
- React. Memo and React. UseCallback optimize performance
- 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
- 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
- The React brothers component communicates. How do sibling components communicate in React
- Synthesize events in React. Events in React are composite events that you can use
e.nativeEvent
Get the native event and observee.nativeEvent.currentTarget
You will find that React binds all events together#app
(Root component mounted by the React application) - What is the native event of input.onChange in React?. To observe the
e.nativeEvent.type
known - How do act hooks implement a Counter Counter
- React FiberNode data structure. To carry out
element._owner
We know the FiberNode data structure - When React clicks a button it increases three times. You need to use the callback function, otherwise it will report an error
- React the necessity of immutable data.
- React the necessary function component for immutable data. When setState is the same data twice in act hooks, it is not rerendered
- Event handling for React state batch updates. The state in event processing is updated in batches, reducing rendering times
- 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
- React18 status batch updates. In React 18 all states will be updated in batch
- React capture value
Codepen sample set
- Interview guide for front-end big factory