developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.64k stars 169 forks source link

"babel-plugin-htm", "babel-plugin-react-style-string", "babel-plugin-react-html-attrs", can they be used together? #212

Closed masx200 closed 2 years ago

masx200 commented 2 years ago

"babel-plugin-htm", "babel-plugin-react-style-string", "babel-plugin-react-html-attrs", can they be used together?

developit commented 2 years ago

This should work, just make sure babel-plugin-htm comes last.

masx200 commented 2 years ago

I took a look at the source code and found that it can't be used together, because "babel-plugin-htm" does not generate jsx syntax, and "babel-plugin-react-html-attrs" needs to convert jsx syntax to work properly.

---Original--- From: "Jason @.> Date: Fri, Aug 20, 2021 00:15 AM To: @.>; Cc: @.**@.>; Subject: Re: [developit/htm] "babel-plugin-htm", "babel-plugin-react-style-string", "babel-plugin-react-html-attrs", can they be used together? (#212)

This should work, just make sure babel-plugin-htm comes last.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.