# View Render Hooks

## Hooks

`viewClass` - a [ClassName Input](classname-input.md) for the root view element. Called whenever the view changes.

`viewDidMount` - called right after the view has been added to the DOM

`viewWillUnmount` - called right before the view will be removed from the DOM


## Argument

When the above hooks are specified as a function in the form `function(info)`, the `info` is an object with the following properties:

- `view` - a [View Object](view-object.md)
- `el` - the view's root HTML element. not available in `viewClass`
