Sha256: 5882cbdfba232074b9fe00b33310e130bbcfa42e0f2aec9696220d0d3808f169

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 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, nil, :class=>"react-render-anywhere", :id=>element)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
react-render-anywhere-helper-0.1.7 lib/ReactRenderAnywhere.rb
react-render-anywhere-helper-0.1.5 lib/ReactRenderAnywhere.rb