From bd87711a2cb703f95a6f748b0d8d5810b83a4c4a Mon Sep 17 00:00:00 2001 From: Helder Ferreira <35483115+helfer1991@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:15:15 +0100 Subject: [PATCH] fix(curriculum): refactor import from lesson 25 of learning react - work with forms (#61796) --- .../67e2a4cab99d4e8bc795e99d.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lecture-working-with-forms-in-react/67e2a4cab99d4e8bc795e99d.md b/curriculum/challenges/english/25-front-end-development/lecture-working-with-forms-in-react/67e2a4cab99d4e8bc795e99d.md index ec7a5868ea3..a8836417680 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-working-with-forms-in-react/67e2a4cab99d4e8bc795e99d.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-working-with-forms-in-react/67e2a4cab99d4e8bc795e99d.md @@ -217,11 +217,9 @@ To fix this issue, you need to wrap the action in `startTransition`: ```jsx "use client"; -import { useActionState } from "react"; -import { getUsers } from "./actions/getUsers"; - // import startTransition from React -import { startTransition } from "react"; +import { useActionState, startTransition } from "react"; +import { getUsers } from "./actions/getUsers"; export default function FetchUsers() { const [users, fetchAction, isPending] = useActionState(getUsers, []);