मैं प्रोग्राम के इतने this.props.history.push('/new-path');
यह काम की तरह एक अलग पृष्ठ पर नेविगेट करने की कोशिश कर रहा था, लेकिन मैं कह रहा कंसोल में एक प्रतिवाद चेतावनी मिल गया:this.props.history बहिष्कृत हो गई है (प्रतिक्रिया-रूटर)
Warning: [react-router] props.history and context.history are deprecated. Please use context.router.
इसके बारे में अधिक यहाँ https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.0.0.md#changes-to-thiscontext
बाद में मैं इतना this.context.router.push('/new-path')
की तरह इस नई विधि का उपयोग करने की कोशिश की लेकिन यह सही दृष्टिकोण होना प्रतीत नहीं होता है।
संभवतः संबंधित: http://stackoverflow.com/questions/35213446/react- रूटर-इस संदर्भ रूटर-धक्का-करता-नहीं-रिमाउंट-घटक –