Created
April 4, 2020 06:11
-
-
Save adriaanbd/a8f08a00102b61bd1e5fdc183034fa9b to your computer and use it in GitHub Desktop.
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 React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
const mapStateToProps = state => ({ | |
appName: state.appName | |
}) | |
class App extends Component { | |
render() { | |
return ( | |
<div> | |
{this.props.appName} | |
</div> | |
); | |
} | |
} | |
export default connect(mapStateToProps, () => ({}) )(App) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment