6

Shanyue has more than 600 questions in Dachang's interview question bank.

image.png

And it contains interview questions in various directions, such as React, HTTP, etc.

image.png

image.png

But many of them are about code articles:

  1. One part examines your programming skills
  2. Part of your React/Vue capabilities through code

I threw all the code of the warehouse to codesandbox and codepen, and continue to update. Welcome to follow my Github and my Codepen.

Finally, I packaged all the interview questions into PDF, and those who are interested can send me a private message.

CodeSandbox sample collection

Since CodeSandBox cannot be shared as favorites, I summarize the examples involved here

  1. React.memo and performance optimization . When the status of a component is updated, all its child component trees will be re-rendered.
  2. React.memo and
  3. React.memo and React.useMemo optimize performance
  4. React.memo and React.useCallback optimize performance
  5. Can the index of an array be used as the key in React? . In this code, index is used as the key, which is mixed with input, causing a bug
  6. React uses the index of the array as the key . In this code, index is used as the key, which is mixed with random numbers, causing a bug
  7. React brother component communication . How sibling components communicate in React
  8. synthetic event React. Events in React are synthetic events. You can get native events e.nativeEvent e.nativeEvent.currentTarget you will find that React binds all events to #app (the root component mounted by the React application)
  9. is the native event of input.onChange in 160f627297b8c9 React? . Observe e.nativeEvent.type know
  10. How React hooks implement a counter
  11. React FiberNode data structure . Implement element._owner know the FiberNode data structure
  12. three times when the button is clicked. At this time, you need to use the callback function, otherwise an error will be reported
  13. The necessity of React immutable data .
  14. React is a functional component of the necessity of immutable data . When setState is the same data twice in React hooks, it will not be re-rendered
  15. React state batch update event handling . The state in event processing will be updated in batches, reducing the number of renderings
  16. Asynchronous request for batch update of React status . The status in the asynchronous request will not be updated in batches, which will cause multiple renderings
  17. React18 state batch update . All states will be updated in batches in React 18
  18. React capture value

Codepen sample collection


shanyue
4.7k 声望707 粉丝

暮从碧山下,山月(shanyue)随人归。