Skip to content

Instantly share code, notes, and snippets.

@GarthDB
Created December 31, 2015 05:28
Show Gist options
  • Select an option

  • Save GarthDB/82bce52840b7fb6e62f3 to your computer and use it in GitHub Desktop.

Select an option

Save GarthDB/82bce52840b7fb6e62f3 to your computer and use it in GitHub Desktop.
import { connect } from 'react-redux'
import React from 'react'
const mapStateToProps = (state) => {
return { entries: state.entries }
}
const BGEntry = ({
entries
}) => (
<ul>
{entries.map(entry =>
<li key={entry._id}>{entry.sgv}</li>
)}
</ul>
);
export default connect(mapStateToProps)(BGEntry)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment