Sha256: 2149b747766eb09e21f69be52d1af939671aa9a44cef6d3f38dca46287167ca1
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
require "ReactRenderAnywhere/version" module ReactRenderAnywhere def render_component(name, element, props:) content_for(:javascripts) do render partial: "common/react_render_anywhere", locals: { name: name, element: element, props: props } end content_tag(:div, nil, :class=>"react-render-anywhere", :id=>element) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
react-render-anywhere-helper-0.1.0 | lib/ReactRenderAnywhere.rb |