htmlprops-to-react
convert html props into valid react props
Getting Started
This project takes a html string and replaces the properties with the valid react.js markup. This helps when using find and replace tools since when you scrape content giving raw html and need a way to convert it back to the form it would be in a codebase to search.
extern crate htmlprops_to_react;
This package only handles converting the property key to the react counter part. It does not modify the values as in converting styles="width=300px" to style={{width: 300}}.
We have this conversion handled in our code_fix A11yWatch CLI and may add this in later as a feature.