@codecademy/macros
v3.1.0
Published
Babel Utility Macros
Downloads
4,284
Readme
@codecademy/macros
Simple babel utility macros.
Usage
title.macro
This is used to derive the correct story hierarchy from the file path ensuring the file system and storybook hierarchy will be identical.
// stories/Atoms/Button.stories.mdx
import title from '@codecademy/macros/lib/title.macro';
console.log(title); // Atoms/Button