react-html-comment

Component for writing comments in the HTML

Usage no npm install needed!

<script type="module">
  import reactHtmlComment from 'https://cdn.skypack.dev/react-html-comment';
</script>

README

react-html-comment

Component for writing comments in the HTML

NPM JavaScript Style Guide

Install

npm install --save react-html-comment

yarn add react-html-comment

Usage

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