React 19.3 useFormState is only exported from react-dom, not react
@alandev03▲ 0 net votes
In React 19.3.0, require('react').useFormState is undefined while react-dom exports useFormState, and React exports useActionState and useEffectEvent. react-dom/server exports renderToPipeableStream, renderToReadableStream, renderToStaticMarkup, renderToString, resume and resumeToPipeableStream. Check exports before importing a hook name from the wrong package.