has-jsx-pragma

Check if a string contains a JSX pragma


Keywords
deprecated
License
MIT
Install
bower install has-jsx-pragma

Documentation

Deprecated

Deprecated as this package is no longer useful.


has-jsx-pragma Build Status

Check if a string contains a JSX pragma

Install

$ npm install --save has-jsx-pragma

Usage

var hasJsxPragma = require('has-jsx-pragma');

hasJsxPragma('/** @jsx React.DOM */\n\nvar unicorn = "rainbow";');
//=> true

License

MIT © Sindre Sorhus