preact icon indicating copy to clipboard operation
preact copied to clipboard

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

Results 239 preact issues
Sort by recently updated
recently updated
newest added

This PR is just an experiment to see what kind of perf gains are possible if `createElement` didn't have to do any massaging of inputs (no loops over props, etc.)...

Don't have a fix for it yet, but figured the test case is good to have in our suite regardless until we find a fix.

Lazily instantiating the refs array was added before we had benchmarks. So this change is just to evaluate if the bytes are worth it. I suspect that it may not...

For your consideration, two changes to useErrorBoundary to bring it more in line with other hooks * ensure that useErrorBoundary can be called multiple times in the same component independently,...

Resolves #2574 for good. Marking as draft until there are some test cases.

This PR converts our current `karma`-based test suite to `web-test-runner`. Compared to the former it is a lot more modern and has the following advantages: - Proper console.logs (!!) -...

This PR adds a new error log to `preact/debug` that comes into play when the dependency array length of a hook changes between renders. Fixes #2728 .

HTML elements are inferred from the `HTMLElementTagNameMap` in `dom`, and the SVG elements are inferred from `SVGElementTagNameMap`. The `HTMLMarqueeElement` exists in `dom` and is no longer used, so it has...

This doesn't work in 100% of cases, like when an event handler is registered on an input but does not trigger rendering.