diff --git a/src/pages/augmented-reality.tsx b/src/pages/augmented-reality.tsx index 9bf1a906..d5847636 100644 --- a/src/pages/augmented-reality.tsx +++ b/src/pages/augmented-reality.tsx @@ -1,8 +1,14 @@ import { NextPage } from "next"; -import React from "react"; +import React, { useEffect, useState } from "react"; const AugmentedReality: NextPage = () => { - return
{window && window.location.search}
; + const [search, setSearch] = useState(""); + + useEffect(() => { + setSearch(window.location.search); + }, []); + + return
{search}
; }; export default AugmentedReality;