Simplest Way to Store your Routing Data and manage Route is to Use React Router . that will manage your routing and also gives a predefined function to go back or forward etc as per your coding . For Your Reference You Can Use This
This Thing is easy to implement and also you like my Answer . Thank You
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…