Loading tutorials
Activity component from React 19.2. It covers what Activity does, how it differs from conditional rendering, and what a boundary looks like in code. The next chapters cover the mode prop, state preservation, and Effects in more detail.5 min readuseState and useEffect, including cleanup functions. It also assumes you use React 19.2 or later, the first version that exports Activity. The previous chapter introduced the component. Here you learn how to control it through its `mo6 min readuseState, props, and how React mounts and unmounts components. It also assumes you can use React 19.2 or later, where Activity is available. The previous chapter showed how to switch an Activity boundary between visible and hidden. This chapter covers what Rea7 min readActivity keeps a hidden component's state and DOM. This chapter covers the part that does not stay. When a boundary becomes hidden, React cleans up the Effects of everything inside it. When the boundary becomes visible again, React runs those Effects again.6 min readuseState and useEffect, including cleanup functions and dependency arrays. It also assumes you have read the earlier chapters on the Activity component and its mode prop. You need React 19.2 or later.6 min readuseState, and useEffect with cleanup functions. It also assumes you have read the earlier chapters on what Activity keeps and what it cleans up. You need React 19.2 or later.6 min readActivity boundary is hidden on its first render. React then prepares that content in the background before anyone asks for it.6 min readActivity boundary. It builds on the earlier chapters, so you should already know the following:7 min readuseState, useEffect and cleanup functions, and that you have read the earlier chapters on Activity, the mode prop and Effect cleanup. You need React 19.2 or later.7 min readuseState, and useEffect with cleanup functions. It also assumes you use React 19.2 or later, which includes Activity. Earlier chapters covered how Activity keeps state, how Effects are cleaned up when it is hidden, and 7 min read