LTLayro Test

Rec Test Net Probe

A test component for the recorder, removed after testing.

Installation

npx shadcn@latest add https://layro.dev/r/layro-test/rec-test-net-probe.json

Or, with @layro in your components.json:

npx shadcn@latest add @layro/layro-test/rec-test-net-probe

Code

import { useEffect, useState } from "react";

export default function RecTestNetProbe() {
  const [state, setState] = useState("checking example.com");
  useEffect(() => {
    fetch("https://example.com/", { mode: "no-cors" })
      .then(() => setState("example.com reached"))
      .catch(() => setState("example.com blocked"));
  }, []);
  return <p className="rounded-md border px-4 py-2 text-base">{state}</p>;
}

Versions

  1. 1.0.0 · current

    Oct 27, 2026

    First release.

Similar components