top | item 27684727

(no title)

vlasev | 4 years ago

If you render the inputs via a list, like

    const inputs = isBob ? [name, confirmation, request] : [name, request]
then it complains that there's no key prop and the issue persists. This shows it's because of confused identity. In the example, it doesn't complain because it doesn't understand that {name}{confirmation}{request} is essentially an unrolled loop.

discuss

order

No comments yet.