40. Adding Server-Side Input Validation

03. NextJS Essentials (App Router) 41. Using useFormState() In the next lecture, we'll use a React DOM Hook called useFormState. For some unknown reason, the React team decided to suddenly change this Hook's name to useActionState. In addition, it now must be imported from react instead of react-dom. So when I write this code in the next lecture import { useFormState } from 'react-dom'; you should write this code (and then use useActionState() instead of useFormState() in any other place where I use it): import { useActionState } from 'react';

Иконка канала BackDev
52 подписчика
12+
1 просмотр
2 месяца назад
12+
1 просмотр
2 месяца назад

03. NextJS Essentials (App Router) 41. Using useFormState() In the next lecture, we'll use a React DOM Hook called useFormState. For some unknown reason, the React team decided to suddenly change this Hook's name to useActionState. In addition, it now must be imported from react instead of react-dom. So when I write this code in the next lecture import { useFormState } from 'react-dom'; you should write this code (and then use useActionState() instead of useFormState() in any other place where I use it): import { useActionState } from 'react';

, чтобы оставлять комментарии