This plugin is a highly recommended supplement to the reusable library, alternatively you can use the babel macro version.
Install the plugin first:
npm install --save-dev babel-plugin-reusable Then add it to your babel configuration:
{ "plugins": ["babel-plugin-reusable"] }Licensed under the MIT License, Copyright © 2019-present Adam Klein and Maayan Glikser.
See LICENSE.md for more information.