3 ms·
And this subtlety is based on a difference in React.createElement() interface. If you pass an array among its children, it automatically requires all of its ite
by wruza 5y ago
And this subtlety is based on a difference in React.createElement() interface. If you pass an array among its children, it automatically requires all of its items to be keyed, and if you pass it as …array, i.e. variadic arguments, it doesn’t. But I believe you either can’t do {…array.map()} in jsx or its creators decided that it is not tasty enough.