mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 22:39:23 -05:00
16 lines
No EOL
321 B
Markdown
16 lines
No EOL
321 B
Markdown
# Development guide
|
|
|
|
### Code style
|
|
|
|
It is recommended to use the Rust style instead of the functional stule in the newly added reactive code.
|
|
|
|
```rust
|
|
RwSignal::new(12) // ✅
|
|
create_rw_signal(12) // 🙅
|
|
|
|
Memo::new(|_| {}) // ✅
|
|
create_memo(|_| {}) // 🙅
|
|
|
|
Effect::new(|_| {}) // ✅
|
|
create_effect(|_| {}) // 🙅
|
|
``` |