Will it insert global style several times, or will it clear it after every unmount?
import {createGlobalStyle} from 'styled-components';
const GlobalStyle = createGlobalStyle`
#some-external-lib-element-that-is-inserted-in-the-end-of-the-body {
color: red;
}
`;
function MyDeepComponent({veryOftenChangingPropThatCausesRerender}) {
return (
<>
<GlobalStyle/>
<SomeExternalLibComponent/>
</>
);
}