Logo Awesome React

Awesome React

Using and writing custom babel macros with create-react-app v2

  • Details
The last beta of create-react-app v2 has been published (https://github.com/facebook/create-react-app/issues/5103) and it comes with babel-plugin-macros built-in (and recommended for certain use cases). Let's see how you can use babel-plugin-macros in a create-react-app app and how to write your own.

https://blog.kentcdodds.com/write-your-own-code-transform-for-fun-and-profit-140abde9c5c6

https://astexplorer.net