Sha256: 4c25547e7f747e6227cb86dd1113a10ccd521ad92461ebd8a17d38534ce9e945
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
# app/views/components/home/show.rb module Components module Home class Show include React::Component # will create a new component named Show optional_param :say_hello_to backtrace :on def render puts "Rendering my first component!" div do txt "hello #{'there '+say_hello_to if say_hello_to}" # render "hello" with optional 'there ...' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reactive-ruby-0.7.10 | example/rails-tutorial/app/views/components/home/show.rb |