lib/react/component/class_methods.rb
# method missing will assume the method is a class name, and will treat this a render of
# of the component, i.e. Foo::Bar.baz === Foo::Bar().baz
method missing will assume the method is a class name, and will treat this a render of
of the component, i.e.
method missing will assume the method is a class name and will treat this a render of of the component i . e .
def method_missing(name, *args, &children)
        Object.method_missing(name, *args, &children) unless args.empty?
        React::RenderingContext.render(
          self, class: React::Element.haml_class_name(name), &children
        )
      end
def method_missing ( name , * args , & children ) Object . method_missing ( name , * args , & children ) unless args . empty? React :: RenderingContext . render ( self , class : React :: Element . haml_class_name ( name ) , & children ) end
method missing will assume the method is a class name, and will treat this a render of
of the component, i.e.
method missing will assume the method is a class name and will treat this a render of of the component i . e .
name
args
children