Lifecycle Methods
class MyComponent < HyperComponent
before_mount do
# initialize stuff here
end
render do
# return some elements
end
before_unmount :cleanup # call the cleanup method before unmounting
...
endRendering
Before Mounting (first render)
After Mounting (first render)
Before Receiving New Params
Before Updating (re-rendering)
After Updating (re-rendering)
Unmounting
The before_render and after_render convenience methods
before_render and after_render convenience methodsThe force_update! method
Last updated
Was this helpful?