Is possible to made a request GET using the browser search bar on React?

  javascript, react-router, reactjs

, i was wondering if is possible to create a request GET using the browser search bar, imagine this Scenario which is , the user is searching some info, and the user have this kind of link on his browser:

http://localhost:3000/data/sample/1

& For any reason the user put :

http://localhost:3000/data/sample/2

but the info will be the previous one (sample/1) because is not calling the Request GET,

i was wondering if exist a method or dependency to create this. I don’t know if is possible creating this with React Router Dom.

Source: React Router Questions

LEAVE A COMMENT