Modals in React
David Gilbertson

You could also pass the component directly instead of passing a string in your action to set the currentModal prop. So you wouldn’t even have to do the switch/case but could render directly this.props.currentModal .

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.