docs: even more docs
This commit is contained in:
1 parent
a4ab2d9de0
commit
0f87ebb277
25 files changed
+986
-174
No files matched your search
@@ -1,3 +1,11 @@
|
||||
# Lifecycle, updates, and effects
|
||||
# Effects
|
||||
|
||||
In theory, your UI code should be side-effect free. Whenever a component renders, all of its state should be prepared ahead of time. In reality, we often need to perform some sort of side effect. Possible effects include:
|
||||
|
||||
- Logging some data
|
||||
- Pre-fetching some data
|
||||
- Attaching code to native elements
|
||||
- Cleaning up
|
||||
|
||||
This section is organized under interactivity because effects can be important to add things like transitions, videos, and other important media.
|
||||
|
||||
> This section is currently under construction! 🏗
|
||||
Reference in new issue
Block a user