Update docs

This commit is contained in:
Aaron Smith 2023-12-07 17:26:01 +00:00
parent 3aed45212a
commit d682161c06
13 changed files with 315 additions and 493 deletions

View file

@ -35,7 +35,6 @@ return Button
```
```lua [App.luau]
local mount = vide.mount
local create = vide.create
local Button = require(Button)
@ -60,7 +59,7 @@ local function App()
}
end
mount(App, game.StarterGui)
App().Parent = game.StarterGui
```
:::
@ -76,8 +75,3 @@ To create a new button all you must do is call the `Button` function, passing in
values. This saves having to create and set every property each time. Also, when
updating the button component in future, any changes to the button file will be
seen anywhere the button is used in your app.
The `mount()` function is used to set up Vide's reactivity system when creating
your UI. It only needs to be called once at the top-level with the function that
puts together your entire app. It also parents the returned instance to another
a target instance for you.