The project template implements a history listener that keeps track of the previous page. The previous page is then used in the goBack function.
However, using this goBack function prevents the user from going back more than one page. Therefore I propose to use history.goBack instead.
If necessary, I can change the BackButton from an a to a button as well. That would remove the need for the href prop but will probably need some styling.
The project template implements a history listener that keeps track of the previous page. The previous page is then used in the
goBack
function.However, using this
goBack
function prevents the user from going back more than one page. Therefore I propose to usehistory.goBack
instead.If necessary, I can change the
BackButton
from ana
to abutton
as well. That would remove the need for thehref
prop but will probably need some styling.