Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 80fbb4e

Browse files
committed
Fix some typos
1 parent 9200d46 commit 80fbb4e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# React.rb
22

3-
**React.rb is a [Opal Ruby](http://opalrb.org) wrapper of [React.js library](http://facebook.github.io/react/)**.
3+
**React.rb is an [Opal Ruby](http://opalrb.org) wrapper of [React.js library](http://facebook.github.io/react/)**.
44

55
It let you write reactive UI component with Ruby's elegancy and compiled to run in Javascript. :heart:
66

@@ -16,6 +16,7 @@ and in your Opal application,
1616
```ruby
1717
require "opal"
1818
require "react"
19+
1920
React.render(React.create_element('h1'){ "Hello World!" }, `document.body`)
2021
```
2122

@@ -34,7 +35,9 @@ class HelloMessage
3435
end
3536
end
3637

37-
React.render_static_markup(React.create_element(HelloMessage)) # => '<div>Hello World!</div>'
38+
puts React.render_to_static_markup(React.create_element(HelloMessage))
39+
40+
# => '<div>Hello World!</div>'
3841
```
3942

4043
### More complicated one
@@ -99,8 +102,11 @@ class App
99102
end
100103

101104
puts React.render_to_static_markup(React.create_element(App))
105+
102106
# => '<div><span>Default greeting: Cool! John!</span></div>'
107+
103108
React.render(React.create_element(App), `document.body`)
109+
104110
# mounted!
105111
```
106112

0 commit comments

Comments
 (0)