Skip to content

Commit 98021f0

Browse files
committed
Update README.md
1 parent 50b9e04 commit 98021f0

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,38 @@ React bindings for Redux embrace the idea of [dividing “smart” and “dumb
3838

3939
It is advisable that only top-level components of your app (such as route handlers, for example) are aware of Redux. Components below them should be “dumb” and receive all data via props.
4040

41-
<center>
41+
4242
<table>
4343
<thead>
4444
<tr>
4545
<th></th>
46-
<th>Location</th>
47-
<th>Use React-Redux</th>
48-
<th>To read data, they</th>
49-
<th>To change data, they</th>
46+
<th scope="col" style="text-align:left">“Smart” Components</th>
47+
<th scope="col" style="text-align:left">“Dumb” Components</th>
5048
</tr>
5149
</thead>
5250
<tbody>
5351
<tr>
54-
<td>“Smart” Components</td>
52+
<th scope="row" style="text-align:right">Location</th>
5553
<td>Top level, route handlers</td>
56-
<td>Yes</th>
57-
<td>Subscribe to Redux state</td>
58-
<td>Dispatch Redux actions</td>
54+
<td>Middle and leaf components</td>
5955
</tr>
6056
<tr>
61-
<td>“Dumb” Components</td>
62-
<td>Middle and leaf components</td>
57+
<th scope="row" style="text-align:right">Aware of Redux</th>
58+
<td>Yes</th>
6359
<td>No</th>
60+
</tr>
61+
<tr>
62+
<th scope="row" style="text-align:right">To read data</th>
63+
<td>Subscribe to Redux state</td>
6464
<td>Read data from props</td>
65+
</tr>
66+
<tr>
67+
<th scope="row" style="text-align:right">To change data</th>
68+
<td>Dispatch Redux actions</td>
6569
<td>Invoke callbacks from props</td>
6670
</tr>
6771
</tbody>
6872
</table>
69-
</center>
7073

7174
### “Dumb” components are unaware of Redux
7275

0 commit comments

Comments
 (0)