5 lines
183 B
TypeScript
5 lines
183 B
TypeScript
/* eslint-disable react/no-danger */
|
|
export const HtmlComment = ({ text }) => (
|
|
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
|
|
);
|