Skip to content

Instantly share code, notes, and snippets.

@alyssaBiasi
Last active September 6, 2016 22:16
Show Gist options
  • Save alyssaBiasi/ad3a6af92bc36799708f0403914ca500 to your computer and use it in GitHub Desktop.
Save alyssaBiasi/ad3a6af92bc36799708f0403914ca500 to your computer and use it in GitHub Desktop.
REA ReactJS Performance Debugging "Connecting"
const Component = ({ shouldRenderFeature }) => ( ... );
const mapStateToProps = (state) => ({
shouldRenderFeature: state.toggles.featureA
});
export default connect(mapStateToProps)(Component);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment