An open API service indexing awesome lists of open source software.

https://github.com/knisterpeter/preact-rerender-bug

Describes the referenced issue in preact
https://github.com/knisterpeter/preact-rerender-bug

Last synced: about 1 year ago
JSON representation

Describes the referenced issue in preact

Awesome Lists containing this project

README

          

# preact-rerender-bug

This shows a bug (or at least difference) between preact and react.

While using react, the `div` node rendered by the plugin keeps mounted even if its props changes, preact
remounts it which will result in remounting the included child.

This will have many lifecycle sideeffects different from react.

Run `npm start` and open `http://localhost:3000`.
Then hit the `Tap` button a few times while inspecting the JS console and the devtools element pane.