score:5

Accepted answer
import Modal from './modal';
import { connect } from 'react-redux';

export default const AppLayoutModal = connect(state => ({isOpen: state.app.isModalShown}))(Modal);

score:1

export default connect((state) => ({
  isModalShown: state.app.isModalShown,
}))(Modal)

Related Query

More Query from same tag