Introduction
If you're new to Vortex, welcome! This is your starting point...
What is Vortex?
var x = 0
var y = 0
/*
Let's set a hook on 'x' so that when it changes, it updates 'y'
*/
x::onChange((e) => {
println(f"x: ${e.old} -> ${e.current}")
y = x * 2
})
x = 5
/*
Changing 'x' will print the below to the console:
x: 0 -> 5
And update the value of 'y'
*/
println(y) // 10Why use Vortex?
What does Vortex offer?
Last updated