DEV Community

Discussion on: Why do you like jsx?

Collapse
 
levitabris profile image
Wei Li

Can I ask a stupid question? Which one is easier to debug? For instance, if there is mistyped variable name, which solution gives me the most friendly message to track down that error source? Thanks!

Collapse
 
avalander profile image
Avalander

Well, jsx is transpiled to plain JavaScript function calls, so both jsx and the equivalent hyperscript will result in the same error message.

Collapse
 
levitabris profile image
Wei Li

Helpful explanation, thanks.