Skip to content
Server rendered React components with V8.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
spec
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
react-ruby-v8.gemspec

README.md

Server rendered React components with V8

Example

Run this example in irb to get an idea of what's going on:

require 'react-ruby-v8'

rrjs = ReactJS.new('react.js', 'my_component.js')
rrjs.set_component('MyComponent', {'data' => [[1, 2, 3],[4, 5, 6],[7, 8, 9]]})

puts rrjs.get_markup
puts rrjs.get_js('#elem')
You can’t perform that action at this time.