Sha256: b2f15fb42c0140dc8532a9a35c2e66504177447baf0ae952a6e90f956e6293d8

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require "ReactRenderAnywhere/version"

module ReactRenderAnywhere
  def render_component(name, element, props:)
    content_for(:javascripts) do
      render file: "lib/common/_render_components.haml", 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.6 lib/ReactRenderAnywhere.rb