preact icon indicating copy to clipboard operation
preact copied to clipboard

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

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

**Describe the bug** This is a bug related to Preact with Next.JS. If there's a better place to post this please let me know :) When an exception is throw...

Hello Jason, First of all, let me say that I am a big fan of Preact. Great job. The only problem I have is that Google page speed insights keep...

**Describe the feature you'd love to see** A way to hydrate and render a Preact app in a defined region of the document head. **Additional context (optional)** Using the entire...

question
discussion
workaround
after X
feature request

When I upgrade npm packages in my project, preact 10.5.13 breaks my webpack build with this error: ERROR in ./node_modules/preact/compat/server.mjs 1:0-4:33 Can't reexport the named export 'renderToString' from non EcmaScript...

- [ ] Check if updating to the latest Preact version resolves the issue **Describe the bug** *before starting, i'm honestly not sure if this's a bug or it's me...

types

# Reactive addon ## Summary This PR adds a new addon called `reactive`, which is an alternative to `hooks` for managing state. It's main purpose is to decouple the rendering...

Previously `FunctionComponent` was only typed as returning `VNode | null`, but Preact supports returning Arrays as well as any VDOM text primitive (boolean, etc). Class component render methods were typed...

- [x] Check if updating to the latest Preact version resolves the issue Using Next.js (SSR) -> package.json: ``` "next": "12.1.2", "next-plugin-preact": "3.0.6", "preact": "10.7.0", "preact-render-to-string": "5.1.20", "react": "npm:@preact/[email protected]", "react-dom":...

React is trying to figure out how to handle this too, in https://github.com/facebook/react/issues/6436 . Would love to see this added in somehow in preact. It's a fantastic capability for battling...

discussion

This mostly affects useReducer, where dispatching from within the reducer will drop the resulting state update: https://codepen.io/developit/pen/YzEOWGx?editors=0010