score:0

i'm confused, the title of your question itself tell you what to do - use children:

const more = ({ children }) => {

   return (
     <div>
      {isopen ? children : null}
      ...
     </div>
   );

}


is this what you want?


Related Query

More Query from same tag