I got this code:
const mapStateToProps = (state) => { return { currentUser: state.mainstate.currentUser, appLoaded: state.mainstate.appLoad