Real-Time Results from Input #594
johnlindquist
announced in
Docs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you pass a function as the second argument of
arg
, you can take the currentinput
and return a string. Kit.app will then render the results as HTML. The simplest example looks like this:If you want to make it look a bit nicer, you can wrap the output with some HTML:
Growing on the example above, here's a Celsius to Fahrenheit converter:
Beta Was this translation helpful? Give feedback.
All reactions