Skip to the content.

Presentational vs container components

Which of the following best describes a presentational component?

Which of the following best describes a presentational component?

In React 19, a function component declares function Badge({ tone = "info" }) and the parent passes tone={undefined}. What happens?

In React 19, a function component declares `function Badge({ tone = "info" })` and the parent passes `tone={undefined}`. What does the component receive?