Expand description
HTML to react transformer
html-to-react is a fast html to react transformer that uses btrees to search and replace html properties to the react equivalent.
§How to use html-to-react
There are two ways to use html-to-react:
- Convert props React transform html string to a react string.
convert_props_react
is used to transform :blocking.
- Convert to React Lets you transform the html to a react component.
convert_to_react
is used to transform :blocking.
§Basic usage
First, you will need to add html-to-react
to your Cargo.toml
.
Next, add your html to one of the transform methods to get your react, output.
Functions§
- convert_
props_ react - convert props to react
- convert_
to_ react - convert props to a react component
- create_
style_ object - manipulate the style properties to react