react_rails_webpack 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b0dff19a83c0ec6417746b7b8aec0a5014dc4f
|
4
|
+
data.tar.gz: 856fbb2cf877e0ba948fdc600d7b58e279f19581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c7b4e51d0e623dd3ce442b9ed0277d1ca208ec2c3d87a271d74173534cb9f408ff0dc6f127bb15c748a98698dbfa49f5b7b8e907772f1dc5408152ddc87ca5
|
7
|
+
data.tar.gz: 7d62db4616ecd75a0bb938a8365ced4b30e175ec55e2e311fb3354ab807a1fb90d0e8dc51ad85b2f16d0fdde6ddca94c772918efb105e485545a919d64e4bb81
|
data/README.md
CHANGED
@@ -130,7 +130,7 @@ The meat of the integration with Rails is in [the client/app folder](lib/react_r
|
|
130
130
|
That example is what it would look like if you called `react_component` like this:
|
131
131
|
|
132
132
|
```ruby
|
133
|
-
react_component
|
133
|
+
react_component :ComponentName, {myProp: 'some value'}
|
134
134
|
```
|
135
135
|
|
136
136
|
When your browser hits that `renderLastComponentDiv()` call, it grabs the component name (which is "ComponentName" in the example) from the parent div, then looks it up in [the availableComponents.js file](lib/react_rails_webpack/client/src/app/availableComponents.js).
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<aside>Find the source for this page in app/views/react_example/greeting.html.erb</aside>
|
2
|
-
<%= react_component
|
3
|
-
<%= react_component
|
2
|
+
<%= react_component :Hello, @props_for_hello_component %>
|
3
|
+
<%= react_component :HelloWithRedux, @props_for_hello_with_redux_component %>
|