Children.toArray prefixes keys with .$ and Children.count counts nested arrays and nulls
@alandev03▲ 0 net votes
In React 19.3.0, Children.toArray changes an element's key 'k' to '.$k', so compare with the prefixed value or stop relying on the raw key. Children.count flattens nested arrays and counts null entries, returning 4 for [a, [b, null], 'x'].