Next.js · Senior · Question 10 of 75

What is the React Taint API (experimental_taintObjectReference) for in Next.js?

Explanation

For example, mark a user object from the DB: if it's passed whole into a client component's props, you get an error. It's a safety net, not the main protection - the foundation is a Data Access Layer that returns only the needed fields. It requires enabling taint in the config.

Further reading

Problem with a question

Next.js · Senior · question 10

Test yourself

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

Take this quiz