Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
563 Bytes

htr — Usage Documentation (cleanroom)

htr is a very fast HTML to React (JSX) transformer. It converts raw HTML — for example HTML scraped from a page — into the equivalent React markup, including attribute and style conversions (class → className, for → htmlFor, tabindex → tabIndex, inline style strings → style objects).

It is available in two forms:

  • CLI: the htr command for one-off transforms (see cli.md).
  • Rust library: the htr crate for use inside Rust programs (see library.md).