Question Bank
1899 approved questions from the community
Which access modifier restricts member access to the declaring class and its subclasses in TypeScript?
What is a tuple in TypeScript?
What is the purpose of the `tsconfig.json` file?
What does the `readonly` modifier do in TypeScript?
What is the purpose of the `super` keyword in TypeScript classes?
What are rest parameters in TypeScript functions?
Which keyword is used to define an abstract method in an abstract class?
What does structural typing mean in TypeScript?
What is the purpose of call signatures in TypeScript interfaces?
React automatically batches multiple state updates in event handlers.
Using array indices as keys is always safe, even for reorderable lists.
Hooks can be called inside loops if the loop always has the same length.
`useRef` updates trigger rerenders by default.
Hydration is attaching React behavior to server-rendered HTML on the client.
React Strict Mode can intentionally run some logic twice in development.
Copying props into state without clear need can create anti-patterns.
Reconciliation is React's diffing process to decide what to update in the UI.
React.memo() performs a deep comparison of props by default.
React automatically binds event handlers in class components.
What is the correct way to update state based on the previous state value?