Skip to content

Instantly share code, notes, and snippets.

@kanghyojun
Last active July 26, 2021 14:13
Show Gist options
  • Save kanghyojun/c2ac62b8f5e7bcea91ea5e883673b1de to your computer and use it in GitHub Desktop.
Save kanghyojun/c2ac62b8f5e7bcea91ea5e883673b1de to your computer and use it in GitHub Desktop.
const ButtonBox: React.FC = () => {
return (
<div id="buttonBox">
<a className="button cta-btn" href="https://app.query.delivery/people/new/">
지금 무료로 사용하기
</a>
<a className="button" href="https://www.notion.so/hops/fc293ffe8ffe4ea680a13662432e7538">
서비스 소개
</a>
</div>
);
};
const insertAfter = (elem, targetElement) => {
const appendElem = document.createElement('div');
appendElem.setAttribute('id', id);
targetElement.parentElement.insertBefore(appendElem, targetElement.nextSibling);
ReactDOM.render(elem, appendElem);
};
document.onload = function () {
insertAfter(<ButtonBox />, document.querySelector('div[data-block-id="96b9c104-33f6-4b86-aac0-7ca99d5ac56b"]'))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment