React: docs: list and key examples override Number

Created on 21 Oct 2016  路  2Comments  路  Source: facebook/react

Do you want to request a _feature_ or report a _bug_?

bug

What is the current behavior?

In #8027 some examples use Number as component name

function Number(props) {
   // ...
}

Maybe it is a good idea to rename this component to NumberItem or something.

Most helpful comment

I'll do it, if that's ok?

All 2 comments

Oops. I forgot it's a built-in thing.
I'll take a PR renaming it to ListItem.

I'll do it, if that's ok?

Was this page helpful?
0 / 5 - 0 ratings