Instantly share code, notes, and snippets.

Embed
What would you like to do?
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