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.
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.
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,
121
121
122
122
```ruby
123
123
classApp
@@ -139,7 +139,7 @@ end
139
139
140
140
## Mixins
141
141
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.
143
143
144
144
```ruby
145
145
moduleSetInterval
@@ -183,7 +183,7 @@ $window.after(5) do
183
183
end
184
184
185
185
# => Tick!
186
-
# => ... for 5 times then stop ticking
186
+
# => ... for 5 times then stop ticking after 5 seconds
0 commit comments