Init: First Commit
一个初始的版本
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { clsn } from "~/utils";
|
||||
import styles from "./article.module.less";
|
||||
|
||||
interface ArticleProps {
|
||||
className?: string;
|
||||
html: string;
|
||||
}
|
||||
|
||||
function Article({ className, html }: ArticleProps) {
|
||||
return (
|
||||
<article className={clsn(styles.article, className)} dangerouslySetInnerHTML={{ __html: html }} />
|
||||
);
|
||||
}
|
||||
|
||||
export default Article;
|
||||
Reference in New Issue
Block a user