JSX can do that?

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

JSX is not tied to React — it's a specification for tree structures with XML-like syntax in JavaScript. By using a Babel pragma comment (`/** @jsx anotherFunction */`), you can redirect JSX compilation to any custom function. The post demonstrates this by using JSX for math operations (hypotenuse calculation) and even implementing merge sort via RamdaJS, purely as a creative/humorous exploration of JSX's flexibility.

3m read timeFrom medium.com
Post cover image
Table of contents
JSXJSX for MathJSX for Everything

Sort: