Qs: React
Getting Started
What are the pros of using Component-Based Architecture?
What are the key concepts of a component framework?
Why is React So Fast?
What's Declarative Programming?
What is the result of transpiling JSX code to JavaScript?
What are Code Transpilers?
Explain the term stateless components ?
Can You Name two types of React components?
What are Pure Components in React?
Can React components inherit from each other?
What's the main difference between Props and State?
Explain the use of 'key' in react list ?
Explain error boundaries?
What are react portals?
When optimizing React code by decreasing "re-rendering time"", what should you focus on?
Explain React Router ?
What is Context?
What is a reduction?
Define the term Redux in React ?
What is the 'Store' feature in Redux?
What is an action in Redux?
Explain synthetic event in React ?
Inline Styling, External Styling
Pros and Cons of Inline vs External Styling in React?
What are CSS Modules ?
What's CSS-in-JS ?
You are working on a big front-end code base. In the last releases, you had several bugs due conflicts between CSS classes with the same name. Some CSS classes were used and extended in different parts of the code leading to unpredictable element styles. Which of the following would solve the problem?
Components
What are Default Props in React Components ?
What's PropTypes in React ?
What are Controlled vs Uncontrolled components ?
What's a "pure function" in React ?
Why React prefers purity
Can you give examples of "impure functions" in React ?
Impure component example:
Pure render + side effect in useEffect:
Difference between functional and class components?
State Management
The relationship between state and the UI is said to be deterministic. What does that mean?
What's the Best Practice for Sate Management?
What are some State Management Anti-Patterns?
What's the difference between essential state vs derived state?
What does "Lifting State Up" mean?
What's Prop Drilling?
What's the Best Practice when using Context API?
Our application requires users to authenticate for them to see our premium content. We want an easy way to show/hide certain components depending on if the user is logged in or not. What do you think is the cleanest(least coupled) way to do that?
What's useReducer() ?
What are 3rd-Party State Management Libraries?
React Hooks
Does order matter for React Hooks?
What Are The Rules of Hooks?
Do "infinite loops in hooks" happen often ?
Why do infinite loops happen in hooks?
How to avoid infinite loops in hooks?
Performance Opimization
Top 10 React Optimizations Techniques
What's the difference between useMemo() vs useCallback() ?
useMemo() vs useCallback() ?useMemo() Use Case and Basic Example?
useMemo() Use Case and Basic Example?useCallback() Use Case and Basic Example?
useCallback() Use Case and Basic Example?What's the difference between React.memo() vs useCallback() ?
React.memo() vs useCallback() ?What's React.memo() ?
React.memo() ?How: Code example for React.memo() ?
React.memo() ?Why: Real-Life Use Cases For React.memo() ?
React.memo() ?How does React.memo() compare the props?
React.memo() compare the props?React.memo() comparing props: Is it possible to change the default behavior?
React.memo() comparing props: Is it possible to change the default behavior?Testing
In a react app, what are some easiest components to Unit Test? What does it imply?
What happens when as you move up the component tree when Unit Testing?
To make components easier to test we should:
Common Patterns
How do you handle file uploads in React forms ?
How do you debounce/throttle input in React ?
Last updated