Clever, nice work. Always fun to see JSX being used for more than rendering DOM nodes.
Something else that might interest you is the library Pastel for native Reason projects. It uses JSX for formatting text to output on the terminal.
https://reason-native.com/docs/pastel/quickstart
I'm using at the moment for a project and its quite interesting