Skip to content

Commit 552262a

Browse files
mohithshukamohithshuka
authored andcommitted
fix(extensions): add missing useState import in backend extension React example
Fixes #25192 useState was used on line 286 but was missing from the import statement, causing an error if users follow the tutorial literally.
1 parent e4e6c89 commit 552262a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Replace the `ui/src/App.tsx` file with the following code:
275275
```tsx
276276

277277
// ui/src/App.tsx
278-
import React, { useEffect } from 'react';
278+
import React, { useEffect, useState } from 'react';
279279
import { createDockerDesktopClient } from "@docker/extension-api-client";
280280

281281
//obtain docker desktop extension client

0 commit comments

Comments
 (0)