Skip to content

Commit 6307cc3

Browse files
committed
Docs
1 parent 2de83d4 commit 6307cc3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/ReactRefresh.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# React Refresh
2+
3+
- `reagent.dev` ns must be required before anything that loads `react-dom`
4+
- Don't call `r.dom/render` after reload (e.g. shadow-cljs hook)
5+
- Call `reagent.dev/refresh!` instead
6+
- Only components defined using `r/defc` will refresh
7+
- Reagent doesn't try to create Hook signatures for components,
8+
so hook state is reset for updated components.

0 commit comments

Comments
 (0)