Replies: 2 comments 1 reply
-
Although, that'd probably require people use the build step for production, so it's probably best to just stick w/ HTM as the baseline. People can always add complexity if they want/need it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There were some good points raised in this week's
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
HTM seems like a solid templating system, and better than JSX in some ways. It was designed for buildless app, so it fits here very well.
One downside, though, is the familiarity the WP community already has w/ JSX. It's not a hard transition for new code, but updating old Gutenberg code would be a lot of work to do manually. Although maybe a codemod could do it easily?
Regardless, there could be resistance to a change of that magnitude, so if there's a way to make this work with JSX, that'd remove some potential friction.
It seems like it's technically possible to transpile JSX in the browser, but it'd be much, much slower than HTM.
xref WordPress/gutenberg#25077
Beta Was this translation helpful? Give feedback.
All reactions