React · Senior · Question 74 of 75

What happened to propTypes on function components in React 19?

Explanation

React 19 silently ignores propTypes. Static types catch the same errors earlier, and schema validation (e.g. Zod) handles external data.

Further reading

Problem with a question

React · Senior · question 74

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