We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc1651 commit d99eb5dCopy full SHA for d99eb5d
lib/react/opal/component/api.rb
@@ -2,7 +2,7 @@ module React
2
module Component
3
module API
4
def self.included(base)
5
- #base.include(::React::Children)
+ base.include(::React::PropsChildren)
6
end
7
8
def state
spec/opal/props_children_spec.rb
@@ -30,9 +30,9 @@ def render
30
React.create_element(React::PropsChildren::TestComponent) { [React.create_element('a'), React.create_element('li')] }
31
32
33
- subject { React.render_to_string element }
+ subject { React.render_to_static_markup element }
34
35
- it { is_expected.to eq 'foobar' }
+ it { is_expected.to eq '<span><span>we have 2 kids</span></span>' }
36
37
38
context "empty" do
0 commit comments