Summary
Describe the issue
There’s a small spelling inconsistency in the React documentation.
In the useEffect cleanup section, the word “behaviour” is used instead of “behavior.”
React docs generally use American English, so “behavior” should be consistent.
Suggested fix
Replace “behaviour” with “behavior” in the paragraph explaining cleanup functions.
Location
File/Section: useEffect cleanup example — https://react.dev/reference/react/useEffect
Page
https://react.dev/reference/react/useEffect
Details
The word “behaviour” is spelled in British English, but React documentation generally follows American English spelling.
To keep consistency across the site, it should be “behavior” instead.