📜  react.children.only 期望接收单个反应元素子元素 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:40.158000             🧑  作者: Mango

代码示例1
/* Some components require to have just one children element inside,
So the solution is to wrap the elements inside the parent element with a 
 or a react fragment <>  

Example:
*/


    
        //your elements