ruby-hyperloop / ruby-hyperloop.io

The project has moved to Hyperstack!! - Ruby Hyperloop Website and Documentation
https://hyperstack.org/
22 stars 18 forks source link

Fix getting started example code #33

Closed simplystuart closed 8 years ago

simplystuart commented 8 years ago

Fixes issue #32

catmando commented 8 years ago

thanks so much for the PR... I think what we have here is a version incompatibility

render do
end

and

def render
end

are synonymous. We did this because render blocks are often quite long (20-30 lines) and thus throw warnings if you are using rubocop.

Also you can specify the outer component type, thus eliminating one layer of indentation:

render(:div) do
  ...
end
catmando commented 8 years ago

so the problem was indeed in reactrb-express being a few versions old. The CDN is updated so all should be well. Thanks again for pointing out the issue.