Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Check if a string contains a JSX pragma

License

Notifications You must be signed in to change notification settings

sindresorhus/has-jsx-pragma

Repository files navigation

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