JSPM

react-dom-pragma

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q10041F
  • License MIT

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

Package Exports

  • react-dom-pragma

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-dom-pragma) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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

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

License

MIT © Sindre Sorhus