{"repo":"rehypejs/rehype-react","free":true,"listed":false,"github":"https://github.com/rehypejs/rehype-react","clone":"git clone https://github.com/rehypejs/rehype-react.git","description":"plugin to transform to preact, react, vue, etc","language":"JavaScript","stars":438,"topics":["rehype","rehype-plugin","react","preact","solid","vue"],"license":"MIT","category":"ui-components","readme_excerpt":"rehype-react [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [rehype][github-rehype] plugin to turn HTML into preact, react, solid, svelte, vue, etc. Contents What is this? When should I use this? Install Use API unified().use(rehypeReact, options) Components Options Types Compatibility Security Related Contribute License What is this? This package is a [unified][github-unified] ([rehype][github-rehype]) plugin that compiles HTML (hast) to any JSX runtime (preact, react, solid, svelte, vue, etc). unified is a project that transforms content with abstract syntax trees (ASTs). rehype adds support for HTML to unified. hast is the HTML AST that rehype uses. This is a rehype plugin that adds a compiler to compile hast to a JSX runtime. When should I use this? This plugin adds a compiler for rehype, which means that it turns the final HTML (hast) syntax tree into something else (in this case JSX.Element ). It’s useful when you’re already using unified (whether remark or rehype) or are open to learning about ASTs (they’re powerful!) and want to render content in your app. If you’re not familiar with unified, then [ react-markdown ][github-react-markdown] might be a better fit. You can also use [ react-remark ][github-react-remark] instead, which is somewhere between rehype-react and react-markdown , as it does more that the for","default_branch":null,"files":null,"tree":[],"storefront":"/r/rehypejs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rehypejs/rehype-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}