You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

babel-plugin-jsx-classname-transformer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-jsx-classname-transformer

Babel7 plugin to allow use of "class" instead of "className" in JSX

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-jsx-classname-transformer

A simple babel plugin that lets you use "class" instead of "className". Saves a bit of typing and makes it easier to read and to copy from HTML.

The existing solutions jsx-html-class, and babel-plugin-jsx-class are broken as of 2018.

npm install --save-dev babel-plugin-jsx-classname-transformer

Add this to your .babelrc

{
  "plugins": ["jsx-classname-transformer"]
}

Keywords

babel

FAQs

Package last updated on 02 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