Skip to content

Typo: “behaviour” → “behavior” in useEffect cleanup section #8119

@Ashish-coder-gif

Description

@Ashish-coder-gif

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions