This is an example of how you can use Create React App with Babel Plugin Macros.
It demonstrates not only using one of the many
published macros
(specifically ms.macro
), but also
how to write
and use your own with the evil.macro.js
example.
It even works in codesandbox. (However, due to caching issues, modifying the macro itself on codesandbox is not currently working. Feel free to file an issue on codesandbox about this)