react-server675fbba4
react-servertreemaintestfixtureshttp-url.jsx
test/fixtures/http-url.jsxjsx256 B0098a77a
import { useUrl } from "@lazarv/react-server";

export default function HttpUrlPage() {
  const { origin, searchParams } = useUrl();
  return (
    <>
      <pre>{JSON.stringify(Object.fromEntries(searchParams))}</pre>
      <p>{origin}</p>
    </>
  );
}