StrictMode can call render-related functions more than once in development to expose code that mutates data during render.