Shanyue has more than 600 questions in Dachang's interview question bank.
And it contains interview questions in various directions, such as React, HTTP, etc.
But many of them are about code articles:
- One part examines your programming skills
- 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
- React.memo and performance optimization . When the status of a component is updated, all its child component trees will be re-rendered.
- React.memo and
- React.memo and React.useMemo optimize performance
- React.memo and React.useCallback optimize performance
- 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
- 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
- React brother component communication . How sibling components communicate in React
- 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) - is the native event of input.onChange in 160f627297b8c9 React? . Observe
e.nativeEvent.type
know - How React hooks implement a counter
- React FiberNode data structure . Implement
element._owner
know the FiberNode data structure - three times when the button is clicked. At this time, you need to use the callback function, otherwise an error will be reported
- The necessity of React immutable data .
- 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
- React state batch update event handling . The state in event processing will be updated in batches, reducing the number of renderings
- 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
- React18 state batch update . All states will be updated in batches in React 18
- React capture value
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。