Skip to content

Instantly share code, notes, and snippets.

View IanMitchell's full-sized avatar
💭
Brainstorming something new!

Ian Mitchell IanMitchell

💭
Brainstorming something new!
View GitHub Profile
@IanMitchell
IanMitchell / blog_post.txt
Last active March 13, 2024 16:44
Code Syntax Example
```tsx title="pages/register.tsx"
import { Fragment, useEffect, useState } from "react"; // [!code ++]
import { supported } from "@github/webauthn-json"; // [!code ++]
export default function Register() {
const [username, setUsername] = useState("");
const [email, setEmail] = useState("");
const [isAvailable, setIsAvailable] = useState<boolean | null>(null); // [!code ++]
useEffect(() => { // [!code ++]