All fields

“Context API” in Information Technology

18 questions across 3 technologies.

Information Technology

18 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What problem does the Context API solve in React? React › Context APIReactContext APIBeginner
2What is a common real world use case for the Context API besides sharing a theme? React › Context APIReactContext APIBeginner
3How do you create and use a custom Context in React step by step? React › Context APIReactContext APIIntermediate
4How would you build a custom hook to make using a specific Context simpler and safer? React › Context APIReactContext APIIntermediate
5Why can overusing Context sometimes hurt performance in a large React app? React › Context APIReactContext APIAdvanced
6What is the provider pattern in React and how does it relate to the Context API? React › Design Patterns in ReactReactDesign Patterns in ReactAdvanced
7How would you combine useReducer with the Context API to share complex state across many components? React › useReducer & Complex State LogicReactuseReducer & Complex State LogicAdvanced
8What is the AsyncLocalStorage API, and what problem does it solve for tracking context across asynchronous calls? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
9How do you decide between using Context, a state management library, or simply lifting state up? React › State ManagementReactState ManagementAdvanced
10What is the difference between HTTP methods GET, POST, PUT, PATCH, and DELETE, and what does 'idempotent' mean in this context? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
11How do stream wrappers and stream contexts in PHP allow file functions to work seamlessly with non local resources like remote URLs or cloud storage? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsAdvanced
12What is state management in a React app? React › State ManagementReactState ManagementBeginner
13What is a common sign that an app's state management approach needs to be reconsidered? React › State ManagementReactState ManagementBeginner
14How does composition help avoid the problem known as prop drilling? React › Component Composition & Children PropsReactComponent Composition & Children PropsIntermediate
15How does the react i18next library help manage translations in a React app? React › Internationalization (i18n) in ReactReactInternationalization (i18n) in ReactIntermediate
16What is the difference between local state and global state in a React app? React › State ManagementReactState ManagementIntermediate
17What is the compound component pattern in React, and when is it useful? React › Design Patterns in ReactReactDesign Patterns in ReactAdvanced
18How does lifting state up work in React, and when should you use this pattern? React › Props & StateReactProps & StateAdvanced