Skip to content

Chapter 14 Improving Accessibility - useActionState is not available in React #775

@dtknepper

Description

@dtknepper

Uppon importing useActionState like so:
import { useActionState } from 'react';

The following error appears:
Module '"react"' has no exported member 'useActionState'.ts(2305)

When searching on Google, the official React Documentation actually says that the useActionState is still an experimental feature in their Canary channel.

I assume this means that when using the stable version of React, this Hook is not available yet and can therefore not be used.

If I am completely wrong on this topic, please explain me what I am doing wrong! I'm not doing this course because I am so good at this all already ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions