
Description
html-to-react is a lightweight library that converts raw HTML into a React DOM structure. The README explains the reason it exists: an HTML template was generated by another team, but the author wanted to use React for the parts they controlled, so the template had to be turned into React elements. The library handles that conversion, and the README includes a simple example and an example with custom processing instructions, which let you change how particular nodes are handled during the conversion. You install it as a normal npm package. The source is on GitHub at aknuds1/html-to-react.…
Highlights
- Converts raw HTML into a React DOM structure
- Lightweight library
- Custom processing instructions
- Simple and custom examples
- Install as an npm package
Ratings & Reviews
No ratings yet
Be the first to rate html-to-react.
People also visit
@builder.io/react-native-render-html
The hackable, full-featured Open Source HTML rendering solution for React Native
@native-html/render
The hackable, full-featured Open Source HTML rendering solution for React Native

react-interpolate-component
A component for React that renders elements into a format string containing
html-to-react FAQ
What does html-to-react do?
It converts raw HTML into a React DOM structure.
Why was it written?
The README describes a template produced by another team that the author wanted to combine with React for the parts they controlled.
Can I customize the conversion?
Yes. The README has an example with custom processing instructions.
Are there examples?
Yes, a simple example and one with custom processing.
Where is the source?
On GitHub at aknuds1/html-to-react.
What are the best html-to-react alternatives?
Popular alternatives to html-to-react include @builder.io/react-native-render-html, @native-html/render and interweave. See all html-to-react alternatives
















