shm91
TTCTheo's Typesafe Cult
•Created by shm91 on 10/9/2023 in #questions
Unable to reduce bundle size
2 replies
TTCTheo's Typesafe Cult
•Created by shm91 on 2/6/2023 in #questions
Hello everyone, I need help, I stuck at rendering a component insider a div. My code is like below,
const labelItem = Array.from(document.querySelectorAll('label'))
.find(el => el.textContent === 'External Org Name');
const parentDiv = labelItem?.parentNode?.parentNode?.parentNode;
return(
<>
{
<div className="RequestNewOrgBtn">
<Button disabled={false} onClick={onAddClick}>
{ "Request New External org" }
</Button>
<RequestExternalOrgModal
isOpen={ShowReqExOrgModal}
onClose={onReqExOrgModalClose} />
</div>
}
</>
);
10 replies