Skip to content

Using a11y with preact and preact-cli #156

Open
@PatchOnKnee

Description

Hi currently trying to integrate a11y into a preact app, with preact-cli also installed. preact-cli provides aliases for the React and ReactDOM components and allows the use of normal react components with preact.

The issue arises after implementing a11y. No errors are thrown as React and ReactDOM are imported as per normal, and a11y as per the usage section of the github page. After running the live reload server with "npm run start", no warnings or errors are throw even with the inclusion of a fault element as per the a11y docs.

I've provided the app.js code in this paste bin, which can simply be placed into the default app.js after creating a preact project using the command "preact create default test-project".

Metadata

Assignees

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