-
Notifications
You must be signed in to change notification settings - Fork 2
Continue to learn #1
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
base: master
Are you sure you want to change the base?
Conversation
| {this.Arr1.map((item, index) => (<this.renderListItem key={item.id} item={item} />))} | ||
| <button onClick={() => console.log(this.props.stateprop1)}> GetState</button> | ||
| <button onClick={() => this.props.action1()}> Dispatch Action 1</button> | ||
| <button onClick={() => this.props.action1()}> Dispatch Action 2</button> |
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.
you can define a var instead of using the same string
|
|
||
| function mapDispatchToProps(dispatch) { | ||
| return { | ||
| action1: () => dispatch(ACTIONS.SUCCESS), |
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.
maybe a better naming for the functions
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
| import App from './App' | ||
|
|
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.
remove empty line
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.
not done yet
| @@ -0,0 +1,3 @@ | |||
| export const SUCCESS = "SUCCESS" | |||
|
|
|||
| export const FAILURE = "FAILURE" No newline at end of file | |||
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.
add empty line at the end of the file
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.
not done yet
first pr