Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

[DEPRECATED] Prepend the JSX React DOM pragma to a string if doesn't already contain a pragma

License

Notifications You must be signed in to change notification settings

sindresorhus/react-dom-pragma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

The pragma was deprecated in React.


react-dom-pragma Build Status

Prepend the JSX React DOM pragma to a string if doesn't already contain a pragma

Install

$ npm install --save react-dom-pragma

Usage

const reactDomPragma = require('react-dom-pragma');

reactDomPragma('const unicorn = "rainbow";');
//=> '/** @jsx React.DOM */\nconst unicorn = "rainbow";'

License

MIT © Sindre Sorhus