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
- Host: GitHub
- URL: https://github.com/knisterpeter/preact-rerender-bug
- Owner: KnisterPeter
- Created: 2017-05-08T15:07:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T15:13:22.000Z (about 9 years ago)
- Last Synced: 2025-05-19T22:41:33.680Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://github.com/developit/preact/issues/690
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.