Maintainership of html-to-react

I’m happy to announce that I’ve taken over maintainership of the popular NPM package html-to-react, which currently has about 3600 downloads per month. This package has the ability to translate HTML markup into a React DOM structure.

An example should give you an idea of what html-to-react brings to the table:

var React = require('react');
var HtmlToReactParser = require('html-to-react').Parser;
 
var htmlInput = '<div><h1>Title</h1><p>A paragraph</p></div>';
var htmlToReactParser = new HtmlToReactParser();

// Turn HTML into a bona fide React component that we can integrate into our React tree
var reactComponent = htmlToReactParser.parse(htmlInput);

One Response

  1. Nick
    Nick October 6, 2017 at 9:45 pm | | Reply
    1

    Awesome! I just found this awesome library, and it is brilliant. I am planning to use this on a site I am working on. I submitted a PR fixing an issue I found due to invalid style tags in the HTML I am converting. 🙂

Leave a Reply