Sha256: 8c315bcd05e80baf3002954bf8b8d666e3627bd31ffb9d9ef1818de8f5933d5b

Contents?: true

Size: 750 Bytes

Versions: 44

Compression:

Stored size: 750 Bytes

Contents

#assets/javascript/application.rb

# only put files that are browser side only.

require 'components'  # this pulls in your components from the components.rb manifest file  
require 'react_ujs'   # this is required on the client side only and is part of the prerendering system

# require any thing else that is browser side only, typically  these 4 are all you need.  If you
# have client only sections of code that that do not contain requires wrap them in 
# if React::IsomorphicHelpers.on_opal_client? blocks.  

require 'jquery'           # you need both these files to access jQuery from Opal
require 'opal-jquery'      # they must be in this order, and after the components require
require 'browser/interval' # for #every, and #after methods

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
reactrb-0.8.8 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.7 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.6 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.5 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.4 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.3 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.1 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.8.0 example/rails-tutorial/app/assets/javascripts/application.rb
reactrb-0.7.42 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.41 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.40 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.39 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.38 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.36 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.35 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.34 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.33 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.32 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.31 example/rails-tutorial/app/assets/javascripts/application.rb
reactive-ruby-0.7.30 example/rails-tutorial/app/assets/javascripts/application.rb