Sha256: 2fb67e8ad4e7420f9afb22be2699b3665acbc6eb20a25cccf30d7cfc41185feb
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
require "ReactRenderAnywhere/version" module ReactRenderAnywhere def render_component(name, element, props:) content_for(:javascripts) do render partial: "common/render_components", locals: { name: name, element: element, props: props } end content_tag(:div, :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.4 | lib/ReactRenderAnywhere.rb |