react-html-comment
TypeScript icon, indicating that this package has built-in type declarations

2.0.16 • Public • Published

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

Package Sidebar

Install

npm i react-html-comment

Weekly Downloads

1,637

Version

2.0.16

License

MIT

Unpacked Size

186 kB

Total Files

10

Last publish

Collaborators

  • zneider