diff --git a/docs/api/reactivity-utility.md b/docs/api/reactivity-utility.md index d5292e5..9c7980a 100644 --- a/docs/api/reactivity-utility.md +++ b/docs/api/reactivity-utility.md @@ -60,7 +60,7 @@ scope. ## read() Utility used to read a value that is either a primitive or a source. Sources -read can still be tracked inside a reactive-scope. +read can still be tracked inside a reactive scope. - **Type** diff --git a/docs/tut/crash-course/4-source.md b/docs/tut/crash-course/4-source.md index 1583c59..b7f7d04 100644 --- a/docs/tut/crash-course/4-source.md +++ b/docs/tut/crash-course/4-source.md @@ -1,4 +1,4 @@ -# Source +# Sources *Sources* in Vide are special objects that store a single value. They are the core of reactivity in Vide. Each source represents a source of data, and they diff --git a/docs/tut/crash-course/6-stateful-component.md b/docs/tut/crash-course/6-stateful-component.md index ce9d8d6..3d16279 100644 --- a/docs/tut/crash-course/6-stateful-component.md +++ b/docs/tut/crash-course/6-stateful-component.md @@ -1,4 +1,4 @@ -# Stateful Component +# Stateful Components A stateful component is a component that stores and displays some data. diff --git a/docs/tut/crash-course/7-property-binding.md b/docs/tut/crash-course/7-property-binding.md index b3840cc..9488fba 100644 --- a/docs/tut/crash-course/7-property-binding.md +++ b/docs/tut/crash-course/7-property-binding.md @@ -3,7 +3,8 @@ Explicitly creating effects to update properties can become verbose when there are a lot of properties to update. Vide provides a way to *implicitly* create an effect to update properties on source update. This is also known as -*property binding*, as a property is binded to reflect some data. +*property binding*, since changes to a source will automatically update the +property. ```lua local create = vide.create @@ -29,7 +30,7 @@ Instead of explicitly creating an effect, assigning a (non-event) property a function will implicitly create a side-effect to update that property anytime a dependent source is updated. -Just like effects, the function is ran immediately in a reactive-scope to set +Just like effects, the function is ran immediately in a reactive scope to set the property initially and determine what sources are being depended on. This allows you as the programmer to not need to manually update UI as the state diff --git a/docs/tut/crash-course/8-cleanup.md b/docs/tut/crash-course/8-cleanup.md index 3a04463..16d611d 100644 --- a/docs/tut/crash-course/8-cleanup.md +++ b/docs/tut/crash-course/8-cleanup.md @@ -43,6 +43,6 @@ covered next. On a related note: the reason why `mount()` is used to create your app, is so that any top-level components that need to be cleaned up, can be cleaned up -when the app is later unmounted, since `mount()` runs in a reactive-scope to +when the app is later unmounted, since `mount()` runs in a reactive scope to track `cleanup()` calls. Vide's entire reactive system is independent from the life-time of instances; instances are just a side-effect of the reactive system.