Modify kino button example to render the button (#1811)

This commit is contained in:
Matt Furden 2023-03-20 17:39:40 -07:00 committed by GitHub
parent bd41b5b178
commit b4504e342c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,8 +55,11 @@ the main way to interact with controls is by listening to their
events.
```elixir
Kino.Control.button("Click me!")
|> Kino.listen(fn event -> IO.inspect(event) end)
button = Kino.Control.button("Click me!")
```
```elixir
Kino.listen(button, fn event -> IO.inspect(event) end)
```
<!-- livebook:{"branch_parent_index":0} -->