Skip to content

Instantly share code, notes, and snippets.

@AndrusAsumets
Last active December 25, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrusAsumets/abdb502245c14304cf7e to your computer and use it in GitHub Desktop.
Save AndrusAsumets/abdb502245c14304cf7e to your computer and use it in GitHub Desktop.
//default state combined with redux
booking: {
event_type: {
style: {
position: 'absolute',
left: '0'
}
}
}
//view using immutable.js
render() {
const { booking } = this.props;
return (
<div className="booking__event_type_table_user unselected" style={ booking.get('event_type').get('style').toJS() }></div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment