Fixed use of redux action
This commit is contained in:
parent
8c3335094a
commit
b556441459
7 changed files with 94 additions and 8 deletions
|
@ -29,6 +29,7 @@ class ConnectedForm extends Component {
|
|||
event.preventDefault()
|
||||
const { title } = this.state
|
||||
const id = uuidv1()
|
||||
|
||||
this.props.addArticle({ title, id })
|
||||
this.setState({ title: "" })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue