Sets the main view function for the application.
A lambda that defines how to draw the application state into the Buffer.