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

Commit 170adc4

Browse files
committed
Update README
1 parent a73568c commit 170adc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ puts React.render_to_static_markup(React.create_element(HelloMessage))
4242

4343
### More complicated one
4444

45-
To hook into native ReactComponent life cycle, the native `this` will be passed to the class's initializer. And all corresponding life cycle methods (`componentDidMount`, etc) will be invoked on the instance using the corresponding snake-case method name.
45+
To hook into native ReactComponent life cycle, the native `this` will be passed to the class's initializer. And all corresponding life cycle methods (`componentDidMount`, etc) will be invoked on the instance using the snake-case method name.
4646

4747
```ruby
4848
class HelloMessage
@@ -67,7 +67,7 @@ puts React.render_to_static_markup(React.create_element(HelloMessage, name: 'Joh
6767

6868
### React::Component
6969

70-
Hey, we are using Ruby, simply include `React::Component` to save your typing and have some handy method defined.
70+
Hey, we are using Ruby, simply include `React::Component` to save your typing and have some handy methods defined.
7171

7272
```ruby
7373
class HelloMessage
@@ -117,7 +117,7 @@ React.render(React.create_element(App), `document.body`)
117117

118118
### Props validation
119119

120-
How about props validation? Inspired from [Grape API](https://github.com/intridea/grape), props validation rule could be created easily through `params` class method as below,
120+
How about props validation? Inspired by [Grape API](https://github.com/intridea/grape), props validation rule could be created easily through `params` class method as below,
121121

122122
```ruby
123123
class App
@@ -139,7 +139,7 @@ end
139139

140140
## Mixins
141141

142-
Simply create a Ruby module to encapsulate the behavior. Below are modifed from original [React.js Exmaple on Mixin](http://facebook.github.io/react/docs/reusable-components.html#mixins), [Opal Browser](https://github.com/opal/opal-browser) syntax are used to make it cleaner.
142+
Simply create a Ruby module to encapsulate the behavior. Example below is modified from the original [React.js Exmaple on Mixin](http://facebook.github.io/react/docs/reusable-components.html#mixins), [Opal Browser](https://github.com/opal/opal-browser) syntax are used to make it cleaner.
143143

144144
```ruby
145145
module SetInterval
@@ -183,7 +183,7 @@ $window.after(5) do
183183
end
184184

185185
# => Tick!
186-
# => ... for 5 times then stop ticking
186+
# => ... for 5 times then stop ticking after 5 seconds
187187
```
188188

189189
## Example

0 commit comments

Comments
 (0)