Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



What are some examples of where a context would make sense?
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
Context Hooks Context lets a component receive information from distant parents without passing it as props. For example, your app’s top-level component can pass the current UI theme to all components below,

Original toplevel document

Built-in React Hooks – React
iable that you can update directly. useReducer declares a state variable with the update logic inside a reducer function. function ImageGallery() { const [index, setIndex] = useState(0); // ... <span>Context Hooks Context lets a component receive information from distant parents without passing it as props. For example, your app’s top-level component can pass the current UI theme to all components below, no matter how deep. useContext reads and subscribes to a context. function Button() { const theme = useContext(ThemeContext); // ... Ref Hooks Refs let a component hold some information that isn’t used for rendering, like a DOM node or a timeout ID. Unlike with state, updating a ref does not re-render your component.


Summary

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.