Skip to content

eoncarlyle/react-aira-issue-on-preact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Possible Preact Bug

The following demonstrates a possible bug in Preact when using the React Aria ListBoxItem component. The Preact and React directories render a ComboBox with a single ListBoxItem.

To reproduce the error in Preact and compare against the working React application, run the following:

$ npm --prefix preact install
$ npm --prefix preact run dev

In another terminal:

$ npm --prefix react install
$ npm --prefix react run dev

Note that

$ diff preact/src/app.tsx react/src/App.tsx
1,2c1,2
< import { useState } from "preact/hooks";
< import preactLogo from "./assets/preact.svg";
---
> import { useState } from "react";
> import reactLogo from "./assets/react.svg";
4c4
< import "./app.css";
---
> import "./App.css";
17a18
>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published