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.