Questions tagged [react.rb]

React.rb is a Ruby (Opal) ReactJS library wrapper for building user interfaces in pure Ruby. It uses a declarative paradigm that makes it easier to reason about your application and aims to be both efficient and flexible.

PURE RUBY

React.rb lets you build beautiful interactive user interfaces using the same Ruby language running your server side code. React.rb replaces JS code, JSX, HTML, templating languages, and complex frameworks with one simple system.

REACT + RUBY

The power and simplicity of React with a great easy to use Ruby DSL. React.rb frees you up to do what you do best - building great apps.

SIMPLICITY

One language. One simple model. Under the hood React.rb takes care of all the details for you. The same ruby code runs on the server to deliver pages fast, and then keeps running on the client to handle your user interactions.

27 questions
2
votes
1 answer

How associations are updated with Synchromesh and ReactiveRecord

How do you get Synchromesh to update Reactive Record associations? If you consider the following model: # models/public/post.rb class Post < ActiveRecord::Base has_many :comments end # models/public/comments.rb class Comment <…
BarrieH
  • 373
  • 3
  • 11
2
votes
2 answers

How to use React-Bootstrap in react.rb

I'm using react.rb in my project, And I want to use bootstrap too. I found the React-Bootstrap,but don't know how to use it in react.rb.
贾延平
  • 68
  • 3
2
votes
1 answer

can i have custom links in so snippets?

Can I load my own custom libraries with Stack Overflow's new snippet editor? Can I use custom script tags? I would like to have examples using inline reactive-ruby for example.
Mitch VanDuyn
  • 2,838
  • 1
  • 22
  • 29
1
vote
1 answer

How to handle loading state with Reactive Record lazy loading

I am hoping that someone can point me to the best way to handle loading state in a top level Reactrb component with is lazy loading data through Reactive Record. My gaol is for the top level component to display a wait state while its children…
BarrieH
  • 373
  • 3
  • 11
1
vote
2 answers

is it possible to use the gatsby static site generator with reactrb?

So, I'm basically still pretty new to the whole npm/react.js (let alone react.rb) ecosystem, and I'm wondering if it would be possible to use reactrb with the gatsby static site generator. I've been attempting to get opal/reactrb support through…
hayley
  • 11
  • 1
1
vote
1 answer

How to add components to layouts using React.rb?

I use content_for and partials in my layouts, and I was wondering how to add my React components same way I add partials using React.rb. Thanks.
MRifat
  • 621
  • 5
  • 7
1
vote
2 answers

Bundler::GemRequireError when adding gem

When I make a new Rails project, add gem 'reactive-record', and run rails server, I get a Bundler error: There was an error while trying to load the gem 'reactive-record'. (Bundler::GemRequireError). What gives? I have Rails 4.2.5 and Ruby…
Jamie A.
  • 85
  • 1
  • 7
1
vote
1 answer

auto-adding of 'px' suffix to style values in react.rb

I've noticed that when I try to set the z-index of a page element using inline style, px gets added to the value automatically but z-index needs a number not a pixel value. So the web-browser won't accept it as a valid value and so Z-index…
Thermatix
  • 2,757
  • 21
  • 51
1
vote
1 answer

opal react.rb passing in proc as a param for use as a callback

I can't seem to recall about passing in a proc as a param for a component in react.rb, can someone remind me? Sorry if my question is badly worded, I'm a little tired.
Thermatix
  • 2,757
  • 21
  • 51
1
vote
1 answer

Trying to get react.rb template to render in opal using opal-jquery, was working now it's not

I admit this is similar to a previous question of mine but it's not quite the same. Since I'm using ajax requests in the end I decided to add opal-jquery to my stack, (unless you know an easier way) and switched to using the Document.ready?…
Thermatix
  • 2,757
  • 21
  • 51
0
votes
0 answers

"No route matches" after installing HyperLoop

I'm getting an error when I start rails in development ActionController::UrlGenerationError - No route matches {:action=>"index", :client_id=>"bd881667-ee11-441e-a98f-6f6a6005435a-53d08ea16f47a449a12861c8ebf6e1d3", :controller=>"reception"} It…
Mark Robinson
  • 1,479
  • 2
  • 15
  • 34
0
votes
2 answers

Not showing data with react.rb

I'm just trying to use ReactRB with reactive-record. So the deal is in render part I think. When I'm setting param :user, type: User in React Component class, I can't see any data in my table. Of course Model User in public folder, as this…
Serzh
  • 27
  • 6
0
votes
2 answers

Adding reactive.rb to project

I have a trouble with adding react.rb to my project. At first, after all steps with adding reactive_rails_generator is done, and i started my app, i have got the error: ActionView::Template::Error (undefined method `load_asset' for…
Serzh
  • 27
  • 6
0
votes
1 answer

Is it possible to install Reactrb and Opal via NPM and Webpack?

Is it possible to have NPM/Webpack package Opal and Reactrb? I would simply like to install Reactrb like this: NPM install Opal --save NPM install Reactrb --save And then require as necessary. Then ```webpack`` to package Reactrb and Opal…
BarrieH
  • 373
  • 3
  • 11
0
votes
1 answer

Using React Router and React.rb

I am trying to use React Router from within react.rb. I started using the reactor-router Gem, but the Gem only works with React Router < 1 and I am using React Router 2.4.0 and the API is quite different. Over the last weeks I have taken a few…
BarrieH
  • 373
  • 3
  • 11
1
2