出现警告:Warning: flattenChildren(…): Encountered two children with the same key, .1:$4. Child keys must be unique; when two children share a key, only the first child will be used.

原因:有两个modal的key值重复了

原文地址:https://www.cnblogs.com/cailijuan/p/14302627.html