<YouTube videoId="PbkwqVZsUgs" startTime={230} />
<SideBySide ratio="3:5">
<ExampleCard>
Return a single root element, div or empty tag `<>`
</ExampleCard>
\`\`\`some-component.jsx
// focus(1:2)
return (
<div>
<h1 className="header">Hello</h1>
<h2>World</h2>
<img className="image" src="https://picsum.photos/200" alt="random"></img>
</div>
)
\`\`\`
</SideBySide>
<InstructionBlock>
<InstructionBlock.Action step={1}>
Add this code to your thing:
</InstructionBlock.Action>
<InstructionBlock.Implementation>
```App.js
return (
<div className="App">
<h1 className="heading">Hello</h1>
<h2>World</h2>
<h3>{new Date().toString()}</h3>
</div>
)
</InstructionBlock.Implementation>
#### Tabs
<Card>
</Card>
<Card>
<FileTree focus={[{depth: number, item: number}]}>
- src
- app
- page.tsx
</FileTree>
</Card>
<Instruction ratio="1:1">
<Instruction.Action step={1}>
Create a new file inside of `create-post` called `page.tsx`.
</Instruction.Action>
<Instruction.Implementation>
<Card>
<FileTree focus={[{depth: 4, item: 1}]}>
- src
- app
- page.tsx
- create-post (`/create-post` route)
- page.tsx (UI)
</FileTree>
</Card>
</Instruction.Implementation>
</Instruction>
<CodeWithOutput>
```users.ts
import { pgTable, text, varchar, timestamp } from "drizzle-orm/pg-core"
export const users = pgTable("users", {
id: text("id").primaryKey(),
username: varchar("username", { length: 30 }).notNull(),
firstName: varchar("first_name", { length: 50 }).notNull(),
lastName: varchar("last_name", { length: 50 }).notNull(),
avatar: text("avatar").notNull(),
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
})
CREATE TABLE IF NOT EXISTS "users" (
"id" text PRIMARY KEY NOT NULL,
"username" varchar(30) NOT NULL,
"first_name" varchar(50) NOT NULL,
"last_name" varchar(50) NOT NULL,
"avatar" text NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);