class Frails::Component::React

Attributes

class_name[RW]
content_loader[RW]
prerender[RW]
props[RW]
tag[RW]

Public Class Methods

new(view, path, options) click to toggle source
Calls superclass method Frails::Component::Abstract::new
# File lib/frails/component/react.rb, line 6
def initialize(view, path, options)
  super

  @class_name = @options.fetch(:class, nil)
  @props = @options.fetch(:props, {})
  @tag = @options.fetch(:tag, :div)
  @prerender = @options.fetch(:prerender, false)
  @content_loader = @options.fetch(:content_loader, false)
end