- Notifications
You must be signed in to change notification settings - Fork 733
create example-react-hooks-useReducer #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
587d9e1
6ffa9a3
0efd497
bc239ff
7db2443
0266c65
9150dad
909875d
6fd0bd3
ebcab51
77674e8
61eff1a
0cbaf5e
353311e
8d3b36e
b2b4ba5
e8e0ec6
3c643c6
413f8a6
f1f8a78
a8c9fc0
d0dafc0
ca79e52
efa40b0
dd87760
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,119 @@ | ||||||
Basic example showing how to test useReducer hook. | ||||||
| ||||||
| ||||||
The component: changes stateprop1 from false to true which changes some text. | ||||||
|
The component: changes stateprop1 from false to true which changes some text. | |
The component: changes some text depending on `stateprop1` value. |
afontcu marked this conversation as resolved. Outdated Show resolved Hide resolved
afontcu marked this conversation as resolved. Outdated Show resolved Hide resolved
iqbal125 marked this conversation as resolved. Outdated Show resolved Hide resolved
afontcu marked this conversation as resolved. Outdated Show resolved Hide resolved
iqbal125 marked this conversation as resolved. Show resolved Hide resolved
iqbal125 marked this conversation as resolved. Outdated Show resolved Hide resolved
iqbal125 marked this conversation as resolved. Outdated Show resolved Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the "FAILURE" state isn't being used, I'd remove it from the demo, so code is as focused on the topic as it can be :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.