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

About

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

Topics

Resources

Code of conduct

Contributing

Stars

7 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

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

About

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

Topics

Resources

Code of conduct

Contributing

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages