Look at gluten every day, be interviewed every day, write a project for so long, now let me meet you (
and trial! (this interview is constantly updated! )
React
- What is the nature of jsx (or what is jsx compiled)
- Where does the state returned by the useState execution come from, and how to maintain the previous value when rerender a new jsx tree, while using multiple useState why it is not overwritten by the subsequent useState (or why Hook API cannot be used in the if block)
- How to update the rendering path and logic within react after setState from the current component (or how to achieve breakpoint recovery), and why Hook API must be used at the top level.
- When was ref assigned?
- When will the functions in useEffect be executed? When do you need to isolate side effects? What are side effects?
- How do I update the defaultValue of an input component?
- What is done inside the components that use useSelector?
- What are the differences and principles between HashRouter and BrowserRouter? What does StaticRouter do?
Tools
- What is axios's transformResponse for?
Language
- How does TS remove an attribute from a type? How do I weed out attributes that are not Function types in this type?
- TS private principle?
Server rendering
- How to understand isomorphic rendering?
- How is React server rendering implemented?
- Next.js server rendering principle?
- How to deal with dom operation in server rendering?
- What is the content of the website included in seo?
WeChat Mini Program
- What are the advantages and disadvantages of Mini Program implemented by webview? How is it different from native Mini Program except for the code? two。 Please tell me the Mini Program login process, the official account H5 login process, and the h5 login process within webview?
- How to call WeChat Pay in h5 in webview?
- How do webview's Mini programs realize the function of sharing pages?