Skip to content

React spread operator is still in the official documentation #11293

@salehhamadeh

Description

@salehhamadeh

Bug in documentation

What is the current behavior?
React's spread operator was removed in React 16, but it is still in the documentation https://reactjs.org/docs/jsx-in-depth.html#spread-attributes

What is the expected behavior?
A word of caution should be included that this does not include React 16+. Maybe also add other ways of spreading props.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16+. It worked in previous releases.

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