I would like to create div and put into it a existing child.
Let's say I am using some UI component which gives me some structure, it looks more or less like this. Now I would like to wrap part of this structure in my own div. In this case I want to wrap content into my own div.
<div class="heading"></div>
<div class="content"></div>
<div class="footer"></div>
So my Idea was:
useEffect(() => {
const wrapper = document.querySelector('.content');
wrapper && React.createElement('div', wrapper);
}, [dep])
But this does not create any div because I still see content without parent above