Sha256: 6b7359f2e9a5bf3232dfcda1f57302069ee0141415d143d980113a97619ef271
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
require "react/children" module React module Component module DslInstanceMethods def children Children.new(`#{@native}.props.children`) end def params @params ||= self.class.props_wrapper.new(self) end def props Hash.new(`#{@native}.props`) end def refs Hash.new(`#{@native}.refs`) end def state @state_wrapper ||= StateWrapper.new(@native, self) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
hyper-react-0.11.0 | lib/react/component/dsl_instance_methods.rb |
hyper-react-0.10.0 | lib/react/component/dsl_instance_methods.rb |
reactrb-0.9.0 | lib/react/component/dsl_instance_methods.rb |