React · Senior · Question 15 of 75

What does the <Activity mode="hidden"> component (React 19.2) do?

Explanation

The hidden subtree gets display: none, effects are cleaned up, and updates render at low priority. When switched back to visible, state (typed text, scroll) is preserved and effects are recreated. Handy for tabs and pre-rendering screens the user is likely to visit.

Further reading

Problem with a question

React · Senior · question 15

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz