Returns the current view.
Throws when the component does not render in a Dashboard view.
function ViewTitle() { const view = useView() return <h2>{view.title}</h2>} Copy
function ViewTitle() { const view = useView() return <h2>{view.title}</h2>}
Returns the current view.
Throws when the component does not render in a Dashboard view.