module ReactRuby::JSX
Public Class Methods
context()
click to toggle source
# File lib/react_ruby/jsx.rb, line 4 def self.context @context||=ExecJS.compile ('var global = global || this;' + JSCode.jsx) end
transform(jsx)
click to toggle source
# File lib/react_ruby/jsx.rb, line 8 def self.transform(jsx) result = context.call('JSXTransformer.transform', jsx) result["code"] end