Skip to content

Commit ef0c261

Browse files
mohithshukamohithshuka
authored andcommitted
fix: add missing useState import in frontend extension tutorial
1 parent dc488b2 commit ef0c261

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/manuals/extensions/extensions-sdk/build/frontend-extension-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Replace the `ui/src/App.tsx` file with the following code:
208208
```tsx
209209

210210
// ui/src/App.tsx
211-
import React, { useEffect } from 'react';
211+
import React, { useEffect, useState } from 'react';
212212
import {
213213
Paper,
214214
Stack,
@@ -226,7 +226,7 @@ import { createDockerDesktopClient } from "@docker/extension-api-client";
226226
const ddClient = createDockerDesktopClient();
227227

228228
export function App() {
229-
const [containers, setContainers] = React.useState<any[]>([]);
229+
const [containers, setContainers] = useState<any[]>([]);
230230

231231
useEffect(() => {
232232
// List all containers

0 commit comments

Comments
 (0)