Module: ReactDOMServer

Defined in:
lib/react_dom_server.rb

Class Method Summary collapse

Class Method Details

.render_to_node_stream(native_react_element) ⇒ Object



11
12
13
# File 'lib/react_dom_server.rb', line 11

def render_to_node_stream(native_react_element)
  `Opal.global.ReactDOMServer.renderToNodeStream(native_react_element)`
end

.render_to_static_markup(native_react_element) ⇒ Object



7
8
9
# File 'lib/react_dom_server.rb', line 7

def render_to_static_markup(native_react_element)
  `Opal.global.ReactDOMServer.renderToStaticMarkup(native_react_element)`
end

.render_to_static_node_stream(native_react_element) ⇒ Object



15
16
17
# File 'lib/react_dom_server.rb', line 15

def render_to_static_node_stream(native_react_element)
  `Opal.global.ReactDOMServer.renderToStaticNodeStream(native_react_element)`
end

.render_to_string(native_react_element) ⇒ Object



3
4
5
# File 'lib/react_dom_server.rb', line 3

def render_to_string(native_react_element)
  `Opal.global.ReactDOMServer.renderToString(native_react_element)`
end