-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beginner friendly babel-plugin-htm #47
Comments
I think we can do that! Maybe little sections for each that you can click to show. |
Also just a note - you don't need the Babel plugin at all to get started. It's just if you want to compile HTM down to function calls in production, perhaps to support IE11. |
Yes, thanks for the note 😄 Also less Bytes to send for the user 👀 |
@PeteSolid this is actually one case where performance can be quite counterintuitive :) I'm going to be publishing some results soon that show it can be beneficial to ship HTM and parse Tagged Templates at runtime since it considerably reduces the parse cost of large applications otherwise built with JSX. |
That's interesting ! OK, thats kinda closes the relevance of the initial Issue 😃 |
Definitely! I'm hoping to publish things soon, and then it would be a good time to revisit htm's readme and adjust some of the positioning around our Babel integration. |
Makes a start on developit#47
Hi, I'm relatively new to web development and only know a little about babel - and webpack.
So I want to start a new project and have my webpack config which holds my babel config. I don't know if this is best practice ... anyway - I would like to add the plugin but I am struggeling with it.
Is it possible to change the readme for this plugin so that noobs like me can understand where to put:
[ ["htm", { "pragma": "React.createElement" }] ]
Thank you for htm!
The text was updated successfully, but these errors were encountered: