Skip to content

Commit

Permalink
Merge pull request #1807 from scmx/patch-1
Browse files Browse the repository at this point in the history
Correct first argument name into mapStateToProps
  • Loading branch information
markerikson authored Jun 14, 2016
2 parents b04e7e4 + ae866e3 commit 4b63737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/WritingTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ import { connect } from 'react-redux'
export class App extends Component { /* ... */ }

// Use default export for the connected component (for app)
export default connect(mapDispatchToProps)(App)
export default connect(mapStateToProps)(App)
```

Since the default export is still the decorated component, the import statement pictured above will work as before so you won’t have to change your application code. However, you can now import the undecorated `App` components in your test file like this:
Expand Down

0 comments on commit 4b63737

Please sign in to comment.