Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Dec 1, 2023
1 parent 2de83d4 commit 6307cc3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/ReactRefresh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# React Refresh

- `reagent.dev` ns must be required before anything that loads `react-dom`
- Don't call `r.dom/render` after reload (e.g. shadow-cljs hook)
- Call `reagent.dev/refresh!` instead
- Only components defined using `r/defc` will refresh
- Reagent doesn't try to create Hook signatures for components,
so hook state is reset for updated components.

0 comments on commit 6307cc3

Please sign in to comment.