lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.1.8 vs lib/ReactRenderAnywhere.rb in react-render-anywhere-helper-0.1.9
- old
+ new
@@ -8,10 +8,10 @@
reactComponents.default.render({
component: '#{name}',
props: #{props.to_json()},
element: document.getElementById('#{element}'),
})
- </script>",
+ </script>".html_safe,
:class=>"react-render-anywhere",
:id=>element
)
end
end