Javascript React Router Error You Should Not Use Outside A When Using

Javascript React Router Error You Should Not Use Outside A When Using