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
Use stateless functional component in dumb example
"Dumb" components like this example seem to be an obvious place to use React 0.14 stateless functional components. This PR changes the example to use one.
I don't know if a stateful component was a concious choice, but I would prefer stateless in this situation and I think it should be considered for the example.
Copy file name to clipboardExpand all lines: docs/quick-start.md
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -42,16 +42,14 @@ It is advisable that only top-level components of your app (such as route handle
42
42
Let’s say we have a `<Counter />` “dumb” component with a number `value` prop, and an `onIncrement` function prop that it will call when user presses an “Increment” button:
0 commit comments