helium/hooks/README.md
Elmārs Āboliņš 3bd423243e help
2020-06-28 18:43:28 +03:00

18 lines
327 B
Markdown

Hooks are additional functions to utilize the element lifecycle more granularly
e.g.
```lua
local onDestroyHook = require("helium/hooks/onDestroy")
return function (param)
onDestroyHook(function()
doSomething()
end)
return function()
love.graphics.print("Help")
end
end
```