module React::Component::DslInstanceMethods
Public Instance Methods
children()
click to toggle source
# File lib/react/component/dsl_instance_methods.rb, line 6 def children Children.new(`#{@native}.props.children`) end
params()
click to toggle source
# File lib/react/component/dsl_instance_methods.rb, line 10 def params @params ||= self.class.props_wrapper.new(self) end
props()
click to toggle source
# File lib/react/component/dsl_instance_methods.rb, line 14 def props Hash.new(`#{@native}.props`) end
refs()
click to toggle source
# File lib/react/component/dsl_instance_methods.rb, line 18 def refs Hash.new(`#{@native}.refs`) end
state()
click to toggle source
# File lib/react/component/dsl_instance_methods.rb, line 22 def state @state_wrapper ||= StateWrapper.new(@native, self) end