Socket
Book a DemoInstallSign in
Socket

glamorous.macro

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glamorous.macro

add a displayName property to glamorous components

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

glamorous.macro

Babel Macro

This is a babel-plugin-macros macro for babel-plugin-glamorous-displayname.

Please see those projects for more information.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev glamorous.macro

You'll also need to install and configure babel-plugin-macros if you haven't already.

Usage

Once you've configured babel-plugin-macros you can import/require glamorous.macro. For example:

import glamorous from 'glamorous.macro'

const MyStyledInput = glamorous.input({
  /* your styles */
})

Note:

You basically can replace all usage of the default export of glamorous with glamorous.macro. However, glamorous.macro does not support named exports for built-in components.

Keywords

babel-plugin-macros

FAQs

Package last updated on 31 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts