5 lines
150 B
TypeScript
5 lines
150 B
TypeScript
|
/* eslint-disable react/no-danger */
|
||
|
export const HtmlComment = ({ text }) => (
|
||
|
<div dangerouslySetInnerHTML={{ __html: `<!-- ${text} -->` }} />
|
||
|
);
|