memos/web/src/components/MemoContent/HTMLElement.tsx
2024-07-13 11:06:51 +08:00

12 lines
273 B
TypeScript

import { createElement } from "react";
interface Props {
tagName: string;
attributes: { [key: string]: string };
}
const HTMLElement: React.FC<Props> = ({ tagName, attributes }: Props) => {
return createElement(tagName, attributes);
};
export default HTMLElement;