Sha256: e6ccefd675c1830cb2b3188f94c415370803d57b1843c507f5f5a5c1ab4b87fe
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 Bytes
Contents
%x{ if (typeof global === 'undefined') global = window; if (typeof React === 'undefined') { if (require) global.React = require('react'); } if (typeof ReactDOM === 'undefined') { if (require) global.ReactDOM = require('react-dom'); } if (typeof shallowCompare === 'undefined') { if ('addons' in React && 'shallowCompare' in React.addons) global.shallowCompare = React.addons.shallowCompare; else if (require) global.shallowCompare('react-addons-shallow-compare'); } } module React end module ReactDOM def self.render(element, container, &block) $$.ReactDOM.render(element, container, &block) end end module ReactDOMServer def self.renderToString(element) $$.ReactDOMServer.renderToString(element) end def self.renderToStaticMarkup(element) $$.ReactDOMServer.renderToStaticMarkup(element) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-react-0.0.5 | lib/opal/react/react.rb |
opal-react-0.0.4 | lib/opal/react/react.rb |