Skip to content

kentcdodds/cra-macro-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create React App + Babel Plugin Macros

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)

Learn how to get started writing your own macros.