I\'m passing the setNewCurrent prop from App.js to Redirector.js. In the ComponentDidUpdate function I pass the prop this.props.setNewCurrent(); I want to set t
this.props.setNewCurrent();