File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
# rails_react_stdio
2
2
3
- This is a simple rails wrapper for [ react-stdio] ( https://github.com/mjackson/react-stdio ) .
3
+ This is a simple Ruby on Rails wrapper for [ react-stdio] ( https://github.com/mjackson/react-stdio ) .
4
+
5
+ If you're not familiar with react-stdio, here's a snippet from their repo:
6
+
7
+ > react-stdio lets you render React components on the server, regardless of the backend technology you're using.
8
+
9
+ ## Requirements
10
+ - [ npm] ( https://www.npmjs.com/ )
11
+ - [ react-stdio] ( https://github.com/mjackson/react-stdio )
12
+ - [ Ruby on Rails] ( http://rubyonrails.org/ )
4
13
5
14
## Installation
6
15
Add ` rails_react_stdio ` to your gemfile:
19
28
20
29
## Usage
21
30
22
- Using rails_react_stdio is very simple . You just need to provide a location to your component file, and any props you wish to pass to it as a hash.
31
+ Using rails_react_stdio is very _ simple _ . You just need to provide a location to your component file, and any props you wish to pass to it as a hash.
23
32
24
33
``` ruby
25
34
path_to_component = ::Rails .application.assets[' components/HelloWorld' ].filename
You can’t perform that action at this time.
0 commit comments