React Pattern: Extract Child Components to Avoid Binding
Cory House
1.6K35

Your purpose of extracting the child component is to reduce the performance overhead of a function allocation. However, by omiting key, you ensure that every re-render will create that component anew. The component construction not only includes the binding — which you were trying to avoid — but also allocating the component object itself as well as running some lifecycle functions.

Please add key!

Like what you read? Give Nathaniel Tucker a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.