babel-plugin-syntax-jsx

Allow parsing of jsx

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-syntax-jsx
6.18.06 years ago7 years agoMinified + gzip package size for babel-plugin-syntax-jsx in KB

Readme

babel-plugin-syntax-jsx

Installation

$ npm install babel-plugin-syntax-jsx

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["syntax-jsx"]
}

Via CLI

$ babel --plugins syntax-jsx script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-jsx"]
});