Appsilon / shiny.react

Use React in Shiny applications.
https://appsilon.github.io/shiny.react
GNU Lesser General Public License v3.0
96 stars 12 forks source link

Use `attributsToProps` from html-react-parser #18

Open kamilzyla opened 3 years ago

kamilzyla commented 3 years ago

To render Shiny in React context, we are essentially translating htmltools tags to React elements. The bulk of the work is done by prepareProps() JS function, but it has limitations (see comments in the code). It would be beneficial to use attributeToProps() from html-react-parser library, as it might handle more cases than our home-brewed solution. In particular, we could get rid of "unsupported kebab-case CSS property" warnings.