You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,27 @@ and true React.js engine. :heart:
13
13
14
14
[**Visit reactrb.org For The Full Story**](https://reactrb.org)
15
15
16
-
### Important current react.rb gem users please [read this!](#Road-Map)
16
+
### Important: current react.rb gem users please [read this!](#road-map)
17
17
18
18
## Installation
19
19
20
20
Install the gem, or load the js library
21
21
22
-
+ add gem 'reactive-ruby' to your gem file or
23
-
+ gem install reactive-ruby or
24
-
+ install or load via cdn [inline-reactive-ruby](https://github.com/reactive-ruby/inline-reactive-ruby)
22
+
+ add `gem 'reactive-ruby'` to your gem file or
23
+
+`gem install reactive-ruby` or
24
+
+ install (or load via cdn)[inline-reactive-ruby.js](https://github.com/reactive-ruby/inline-reactive-ruby)
25
25
26
26
For gem installation its highly recommended to read [the getting started section at reactrb.org](http://reactrb.org/docs/getting-started.html)
27
27
28
28
## Quick Overview
29
29
30
30
React.rb components are ruby classes that inherit from `React::Component::Base` or include `React::Component`.
31
31
32
-
`React::Component` provides a complete DSL to generate html, and event handlers, and has full set of class macros to define states, parameters, and lifecycle callbacks.
32
+
`React::Component` provides a complete DSL to generate html and event handlers, and has full set of class macros to define states, parameters, and lifecycle callbacks.
33
33
34
34
Each react component class has a render method that generates the markup for that component.
35
35
36
-
Each react component class defines a new **tag** in the DSL that works just like built-in html tags, so react components can render other react components.
36
+
Each react component class defines a new tag-method in the DSL that works just like built-in html tags, so react components can render other react components.
37
37
38
38
As events occur, components update their state, which causes them to rerender, and perhaps pass new parameters to lower level components, thus causing them to rerender.
39
39
@@ -50,14 +50,14 @@ React.rb integrates well with Rails, Sinatra, and simple static sites, and can b
50
50
+*Ruby Goodness:* Use all the features of Ruby to create reusable, maintainable UI code
51
51
+*React Simplicity:* Nothing is taken away from the React.js model
52
52
+*Enhanced Features:* Enhanced parameter and state management and other new features
53
-
+*Plays well with Others:* Works with other frameworks, Rails, Sinatra or in static web pages
53
+
+*Plays well with Others:* Works with other frameworks, existing React.js components, Rails, Sinatra or in static web pages
54
54
55
55
# Problems, Questions, Issues
56
56
57
57
+[Stack Overflow](http://stackoverflow.com/questions/tagged/react.rb) tag `react.rb` for specific problems.
58
58
+[Gitter.im](https://gitter.im/zetachang/react.rb) for general questions, discussion, and interactive help.
59
59
+[Github Issues](https://github.com/zetachang/react.rb/issues) for bugs, feature enhancements, etc.
0 commit comments