Loading tutorials
Activity component. It assumes you are comfortable with function components, props, and JSX. It also assumes you know useState, and useEffect with cleanup functions. You need React 19.2 or later, because Activity is not available in earlier versions.3 min readuseState, and useEffect with cleanup functions. You need React 19.2 or later, which includes Activity.2 min readuseState, useEffect and Effect cleanup, and that you run React 19.2 or later, which includes Activity. It covers what React keeps when an Activity boundary is hidden. The next chapter covers what React removes.2 min readuseState, useEffect and cleanup functions, and that you are on React 19.2 or later, where Activity is available. The previous chapter showed what stays when an Activity boundary is hidden: component state and DOM nodes. Here you will see what does not stay: runn3 min readuseState, useEffect and cleanup functions. It also assumes you use React 19.2 or later, where Activity is available. The previous chapter showed that a hidden Activity boundary keeps state and DOM. Effects behave differently.2 min readuseState, useEffect cleanup functions, and the Activity mode prop from the earlier chapters. It covers a case where Activity's behavior surprises people: DOM elements that keep doing something after they are hidden.3 min readActivity component's mode prop and how Effects are cleaned up when a boundary is hidden. You should also be comfortable with useEffect, lazy, and Suspense. It needs React 19.2 or later.3 min readuseState, useEffect and Effect cleanup. You should also know how Activity hides content with its mode prop. Here you will see what React does when state or props change inside a hidden Activity boundary.3 min readuseState, useEffect cleanup, and the mode prop of Activity from earlier chapters. Here you will learn what a hidden Activity costs and how to keep that cost under control.3 min readuseState, useEffect with cleanup, and the mode prop of Activity (React 19.2 or later). It helps you choose between four ways to hide UI: conditional rendering, Activity, CSS hiding, and lifting state up.3 min read