jsx_orphaned_brackets_transformer
A utility to update your JSX to work with React 0.13.
Last updated 5 years ago by zpao .
BSD-3-Clause · Original npm · Tarball · package.json
$ cnpm install jsx_orphaned_brackets_transformer -g
SYNC missed versions from official npm registry.

JSX Orphaned Brackets Transformer

React 0.13 no longer parses orphaned > and } as text.

Take this example block:

<div>
  > }
</div>

In 0.12 and below, this would be transformed to the following:

React.DOM.div(null,
  "> }",
)

In 0.13, this will instead throw a parser error.

Usage

The jsx_orphaned_brackets_transformer module ships an executable which transforms a file or directory of files. Files will be modified in place, so be sure you are prepared for that.

$ npm -g install jsx_orphaned_brackets_transformer
$ jsx_orphaned_brackets_transformer <path_to_file_or_files>

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |