This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getUser } from 'selectors/UserSelectors.js'; | |
import { deleteUser } from 'actions/UserActions.js'; | |
export const App = (props) => | |
( <Connect> | |
(state, dispatch) => { | |
const user = getUser(state); // There is no need for mapStateToProps. Just transform the data and pass it | |
return (<Component | |
user={user} |