Skip to content

Instantly share code, notes, and snippets.

@alexbaumgertner
Created March 14, 2017 12:16
Show Gist options
  • Save alexbaumgertner/2495da9a366ce4ec6b7310456bec9d73 to your computer and use it in GitHub Desktop.
Save alexbaumgertner/2495da9a366ce4ec6b7310456bec9d73 to your computer and use it in GitHub Desktop.
const Cell = ('<div></div>');
// => Here will be Griggle state?
const mapStateToProps = state => ({
someData: state.someData
});
const mapDispatchToProps = dispatch => (
bindActionCreators(Cell, dispatch)
)
CellComponent = connect(mapStateToProps, mapDispatchToProps)(Cell)
<div className="PhrasesListTable">
<Griddle>
<RowDefinition>
<ColumnDefinition
customComponent={CellComponent}
/>
</RowDefinition>
</Griddle>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment