feat: 기능 추가 과정중
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
export function attachScript(source) {
|
||||
export function attachScript(source: string) {
|
||||
const script = document.createElement("script");
|
||||
script.src = source;
|
||||
document.head.append(script);
|
||||
-1
@@ -1 +0,0 @@
|
||||
export const execute = (source) => eval(source);
|
||||
+1
@@ -0,0 +1 @@
|
||||
export const execute = (source: string) => eval(source);
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
export function RawHtml({ value }) {
|
||||
export function RawHtml({ value }: { value: string }) {
|
||||
return <div dangerouslySetInnerHTML={{ __html: value }} />;
|
||||
}
|
||||
Reference in New Issue
Block a user