react-html-comment
Component for writing comments in the HTML
Install
npm install --save react-html-comment
yarn add react-html-commentUsage
import React from 'react';
import HTMLComment from 'react-html-comment';
class Example extends React.Component {
render() {
return <HTMLComment text="this is an html comment" />;
}
}Output in source:
...
<!--this is an html comment-->
...License
MIT © Zneider