Loading tutorials
useState hook, and the browser DOM. It covers what "rendering" means in React and the rule that makes the rest of the model work.2 min readuseState hook. It explains what makes React call your component function again.2 min readuseState. It also assumes you know what the browser DOM is. It explains the two stages React runs between a state change and an updated screen.3 min readuseState hook. You should also know that a state update schedules a re-render. Here you will learn how React groups several updates into one render, and how to write updates that work correctly 2 min readuseState hook, and the browser DOM. It also assumes you know that a render produces a tree of elements, and that React then commits changes to the DOM.3 min readuseState, and the idea that React compares the previous and next element trees (reconciliation). The question here is narrow: when a component re-renders, does React keep its state or throw it away?2 min readuseState. It builds on the previous chapter, where React matched elements by type and position. Keys give React a better way to match items in a list.3 min readuseState. It also assumes you know the browser DOM. You should have read the chapter on the render phase and the commit phase.3 min readuseState work. It also assumes you know that a state change makes React re-render a component and, by default, all of its children. Earlier chapters covered the render phase and reconciliation. Here you will see how to skip some of that work3 min readuseState hook. You should also know that React calls your component function during the render phase, before it updates the DOM.2 min readuseState.2 min readReact.memo, useMemo, and useCallback can skip work. This chapter shows how to check whether a re-render is a real problem before you add any of those tools. It assumes you can write function components, use useState, and have read the3 min read