Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function App() {
const online = useOnline();
return (
<div>
<h1>online? {online ? "yes" : "NO"}</h1>
</div>
);
}